diff --git a/web/src/lib/components/photos-page/asset-grid.svelte b/web/src/lib/components/photos-page/asset-grid.svelte index 40424749e0..70350a35b7 100644 --- a/web/src/lib/components/photos-page/asset-grid.svelte +++ b/web/src/lib/components/photos-page/asset-grid.svelte @@ -6,7 +6,7 @@ import { assetViewingStore } from '$lib/stores/asset-viewing.store'; import { AssetBucket, assetsSnapshot, AssetStore, isSelectingAllAssets } from '$lib/stores/assets-store.svelte'; import { showDeleteModal } from '$lib/stores/preferences.store'; - import { isSearchEnabled } from '$lib/stores/search.store'; + import { searchStore } from '$lib/stores/search.svelte'; import { featureFlags } from '$lib/stores/server-config.store'; import { handlePromiseError } from '$lib/utils'; import { deleteAssets, updateStackedAssetInTimeline, updateUnstackedAssetInTimeline } from '$lib/utils/actions'; @@ -425,7 +425,7 @@ }; const onKeyDown = (event: KeyboardEvent) => { - if ($isSearchEnabled) { + if (searchStore.isSearchEnabled) { return; } @@ -436,7 +436,7 @@ }; const onKeyUp = (event: KeyboardEvent) => { - if ($isSearchEnabled) { + if (searchStore.isSearchEnabled) { return; } @@ -625,7 +625,7 @@ let shortcutList = $derived( (() => { - if ($isSearchEnabled || $showAssetViewer) { + if (searchStore.isSearchEnabled || $showAssetViewer) { return []; } diff --git a/web/src/lib/components/shared-components/search-bar/search-bar.svelte b/web/src/lib/components/shared-components/search-bar/search-bar.svelte index 767b0e608d..2dc358bad3 100644 --- a/web/src/lib/components/shared-components/search-bar/search-bar.svelte +++ b/web/src/lib/components/shared-components/search-bar/search-bar.svelte @@ -1,7 +1,7 @@