Skip to content

Commit 479a601

Browse files
committed
Fix type error
1 parent 8bd86e8 commit 479a601

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/conf/2025/schedule/_components/filters.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const FilterStates = {
5656
type FiltersProps = {
5757
categories: FilterCategoryConfig[]
5858
filterState: Record<string, string[]>
59-
enabledOptions: Record<string, Set<string> | null> | null
59+
enabledOptions: Record<string, Set<string> | null>
6060
onFilterChange: (category: string, newSelectedOptions: string[]) => void
6161
}
6262

@@ -117,7 +117,7 @@ export function ResetFiltersButton({
117117
interface FiltersComboboxProps {
118118
label: string
119119
options: string[]
120-
enabledOptions: Set<string>
120+
enabledOptions: Set<string> | null
121121
value: string[]
122122
onChange: (newSelectedOptions: string[]) => void
123123
placeholder: string
@@ -195,7 +195,7 @@ function FiltersCombobox({
195195
<ComboboxOption
196196
key={option}
197197
value={option}
198-
disabled={enabledOptions && !enabledOptions.has(option)}
198+
disabled={enabledOptions ? !enabledOptions.has(option) : false}
199199
>
200200
{({ active, selected }) => (
201201
<FilterComboboxOption

0 commit comments

Comments
 (0)