Skip to content

Commit

Permalink
fix: isSelected on top position
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRohlf committed Dec 5, 2024
1 parent 303f283 commit 302b545
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/@context/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ function FilterProvider({ children }: { children: ReactNode }): ReactElement {
accessType: [],
serviceType: [],
filterSet: [],
gaiax: []
gaiax: [],
custom: []
})
const [ignorePurgatory, setIgnorePurgatory] = useState<boolean>(true)
const [sort, setSort] = useState<Sort>({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default function Filter({
<div className={styles.compactOptionsContainer}>
{filter.options.map((option) => {
const isSelected = filters[filter.id].includes(
`${option.queryPath}=${option.value}`
`${filter.queryPath || option.queryPath}=${option.value}`
)

return (
Expand Down

0 comments on commit 302b545

Please sign in to comment.