Skip to content

Commit 314c035

Browse files
committed
fix: Do not consider we are searching if search is undefined
1 parent 6b5bb3d commit 314c035

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/configurator/components/dataset-browse.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export const SearchDatasetControls = ({
414414
},
415415
];
416416

417-
const isSearching = search !== "";
417+
const isSearching = search !== "" && search !== undefined;
418418

419419
const onToggleIncludeDrafts = useEvent(async () => {
420420
setIncludeDrafts(!includeDrafts);

0 commit comments

Comments
 (0)