Skip to content

Commit

Permalink
Incorporated PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
samaea committed Mar 15, 2023
1 parent 8e0b8d4 commit b6f82f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/src/components/portalnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default function PortalNav({ config }) {
val.reduce((a, c) => a === undefined ? (c.page && c.field ? (currenttabValues[c.page][c.field] === c.value ? c.set : undefined) : c.set) : a, undefined)
:
val
console.log(`updateTabValues: setting tab=${curr}, field=${c} val=${JSON.stringify(val)} targetVal=${JSON.stringify(targetVal)}`)
//console.log(`updateTabValues: setting tab=${curr}, field=${c} val=${JSON.stringify(val)} targetVal=${JSON.stringify(targetVal)}`)
return { ...a, [c]: targetVal }
}, {})
}
Expand Down Expand Up @@ -289,6 +289,7 @@ export default function PortalNav({ config }) {
if(lastAIUpdated.tab !== tab || lastAIUpdated.field !== field){
//console.log("AI:- Field Selected " + tab + "-" + field)
appInsights.trackEvent({name: "FieldSelected." + tab + "." + field});
setLastAIUpdated({tab: tab, field: field})
}

if (typeof field === "string") {
Expand All @@ -301,7 +302,6 @@ export default function PortalNav({ config }) {
}
}

setLastAIUpdated({tab: tab, field: field})
setTabValues((p) => {
return {
...p,
Expand Down

0 comments on commit b6f82f1

Please sign in to comment.