diff --git a/frontend/src/lib/components/ImmichSelect.svelte b/frontend/src/lib/components/ImmichSelect.svelte index 5a895c5..194108e 100644 --- a/frontend/src/lib/components/ImmichSelect.svelte +++ b/frontend/src/lib/components/ImmichSelect.svelte @@ -4,11 +4,12 @@ import type { Adventure, ImmichAlbum } from '$lib/types'; import { debounce } from '$lib'; + let immichImages: any[] = []; let immichSearchValue: string = ''; let searchCategory: 'search' | 'date' | 'album' = 'search'; let immichError: string = ''; let immichNextURL: string = ''; - let loading = false; // TODO: Implement loading indicator + let loading = false; export let adventure: Adventure | null = null; @@ -61,11 +62,8 @@ } else { immichError = $t('immich.no_items_found'); } - if (data.next) { - immichNextURL = data.next; - } else { - immichNextURL = ''; - } + + immichNextURL = data.next || ''; } } finally { loading = false; @@ -84,9 +82,7 @@ } }); - let immichImages: any[] = []; - function buildQueryParams() { let params = new URLSearchParams(); if (immichSearchValue && searchCategory === 'search') { @@ -167,8 +163,14 @@
{immichError}