From e9987009c73e4418be8b899140f97da070eeb67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kr=C4=8Dek?= Date: Wed, 6 Aug 2025 13:47:37 +0200 Subject: [PATCH] Fixed sheet search --- src/lib/components/wizard/StepSheetSearch.svelte | 14 +++++++------- src/lib/stores.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/components/wizard/StepSheetSearch.svelte b/src/lib/components/wizard/StepSheetSearch.svelte index e817c71..9592c54 100644 --- a/src/lib/components/wizard/StepSheetSearch.svelte +++ b/src/lib/components/wizard/StepSheetSearch.svelte @@ -72,7 +72,7 @@ selectedSheet.set(sheetData); } - let canProceed = $derived($selectedSheet !== null); + let canProceed = $derived($selectedSheet.id !== '');
@@ -137,8 +137,8 @@
{#each searchResults as sheet}
handleSelectSheet(sheet)} @@ -159,7 +159,7 @@ Sheet icon {/if} - {#if $selectedSheet?.spreadsheetId === (sheet.spreadsheetId || sheet.id)} + {#if $selectedSheet?.id === (sheet.id || sheet.id)} {#each recentSheets as sheet}
handleSelectSheet(sheet)} @@ -223,7 +223,7 @@ Sheet icon {/if} - {#if $selectedSheet?.spreadsheetId === (sheet.spreadsheetId || sheet.id)} + {#if $selectedSheet.id === sheet.id} >({}); export const CropRects = writable>({}); // Store and hold the selected sheet -export const selectedSheet = writable(null); +export const selectedSheet = writable({ id: '', name: '', webViewLink: '' }); // Card details for generation export const cardDetails = writable(null);