fix(web): update search results when searching from info panel (#16729)

* fix(web): update search results when searching from info panel

* Prevent double search when using search bar

* Format/lint

* Fix infinite loading on intersect

* Remove redundant function
This commit is contained in:
Snowknight26 2025-03-11 17:23:25 -05:00 committed by GitHub
parent d72d715f6b
commit a75718ce99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 27 deletions

View file

@ -19,10 +19,9 @@
value?: string;
grayTheme: boolean;
searchQuery?: MetadataSearchDto | SmartSearchDto;
onSearch?: () => void;
}
let { value = $bindable(''), grayTheme, searchQuery = {}, onSearch }: Props = $props();
let { value = $bindable(''), grayTheme, searchQuery = {} }: Props = $props();
let showClearIcon = $derived(value.length > 0);
@ -43,7 +42,6 @@
showFilter = false;
$isSearchEnabled = false;
await goto(`${AppRoute.SEARCH}?${params}`);
onSearch?.();
};
const clearSearchTerm = (searchTerm: string) => {