Skip to content

Commit 65500f6

Browse files
committed
revert change
1 parent eb8dfbe commit 65500f6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

frontend/src/components/CountryFilter.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ const CountryFilter: React.FC<CountryFilterProps> = ({
1616
isLoading = false,
1717
}) => {
1818
const options = useMemo(
19-
() => [
20-
{ key: '__all__', label: 'All Countries' },
21-
...countries.map((c) => ({ key: c, label: c })),
22-
],
19+
() => [{ key: '', label: 'All Countries' }, ...countries.map((c) => ({ key: c, label: c }))],
2320
[countries]
2421
)
2522

@@ -31,15 +28,14 @@ const CountryFilter: React.FC<CountryFilterProps> = ({
3128
size="md"
3229
isLoading={isLoading}
3330
defaultItems={options}
34-
selectedKey={selectedCountry === '' ? '__all__' : selectedCountry}
31+
selectedKey={selectedCountry}
3532
onSelectionChange={(key) => {
3633
if (key == null) {
37-
return // Don't update on clear - keeps input empty
34+
return
3835
}
3936
const countryKey = key as string
4037
onCountryChange(countryKey === '__all__' ? '' : countryKey)
4138
}}
42-
isClearable={true}
4339
allowsCustomValue={false}
4440
scrollShadowProps={{
4541
isEnabled: false,

0 commit comments

Comments
 (0)