From e1b34ef754499433568e679b1c7cf209177391ae Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 00:34:13 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/settings.import.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/settings.import.tsx b/src/routes/settings.import.tsx index 2a19b21..6dae765 100644 --- a/src/routes/settings.import.tsx +++ b/src/routes/settings.import.tsx @@ -746,10 +746,10 @@ function ImportPage() { const withConflict = chunk.filter((r) => r[cfg.conflict]); const withoutConflict = chunk.filter((r) => !r[cfg.conflict]); - if (cfg.table === "time_entries" && withConflict.length > 0) { + if ((cfg.table === "time_entries" || cfg.table === "invoices") && withConflict.length > 0) { const externalIds = withConflict.map((r) => String(r[cfg.conflict])); const { data: existing, error: lookupError } = await supabase - .from("time_entries") + .from(cfg.table as any) .select("id, external_id") .in("external_id", externalIds);