From b0b01b3b6c794bd195dfa56d8f96dbed20694b18 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:27:46 +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 c6938c8..2a19b21 100644 --- a/src/routes/settings.import.tsx +++ b/src/routes/settings.import.tsx @@ -759,9 +759,9 @@ function ImportPage() { const existingByExternalId = new Map( (existing ?? []).map((entry: { id: string; external_id: string | null }) => [entry.external_id, entry.id]), ); - const toUpdate = withConflict + const toUpdate: Array = withConflict .filter((r) => existingByExternalId.has(String(r.external_id))) - .map((r) => ({ ...r, id: existingByExternalId.get(String(r.external_id))! })); + .map((r) => ({ ...r, id: existingByExternalId.get(String(r.external_id)) as string })); const toInsert = withConflict.filter((r) => !existingByExternalId.has(String(r.external_id))); if (toUpdate.length > 0) {