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 1623734 commit 9ce6367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/src/components/portalnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export default function PortalNav({ config }) {
useAITracking("PortalNav", tabLabels[pivotkey])
const [urlParams, setUrlParams] = useState(new URLSearchParams(window.location.search))
const [invalidArray, setInvalidArray] = useState(() => Object.keys(defaults).reduce((a, c) => { return { ...a, [c]: [] } }, {}))
useAITracking("PageNav", urlParams.get('preset') || 'defaultOps')
// The selected cards within the sections for the chosen preset, for example { "ops": "normal", "secure": "high" }
const [selected, setSelected] = useState(initSelected(urlParams.get('preset') || 'defaultOps'))
useAITracking("PageNav", selected.preset)
// The tabValues, for example { "deploy": { "clusterName": "az234"}}
const [tabValues, setTabValues] = useState(initTabValues(selected, defaults, true))
// Field Selections - Used to keep track of the last FieldSelections monitored by App Insights to prevent logging the same entry continuously
Expand Down

0 comments on commit 9ce6367

Please sign in to comment.