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);