Skip to content

Commit

Permalink
enhance: address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Aug 20, 2024
1 parent f580f6d commit f5925f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions site/multiDim/MultiDimDataPageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,10 @@ export const MultiDimDataPageContent = ({
)
const titleFragments = useTitleFragments(config)

const [initialChoices] = useState(() =>
initialQueryStr
const [currentSettings, setCurrentSettings] = useState(() => {
const initialChoices = initialQueryStr
? extractDimensionChoicesFromQueryStr(initialQueryStr, config)
: {}
)
const [currentSettings, setCurrentSettings] = useState(() => {
const { selectedChoices } =
config.filterToAvailableChoices(initialChoices)
return selectedChoices
Expand Down

0 comments on commit f5925f0

Please sign in to comment.