From 76e3715087cb557090ae457d969e5434336272db Mon Sep 17 00:00:00 2001 From: Nick Zelei <2420177+nickzelei@users.noreply.github.com> Date: Thu, 21 Dec 2023 23:59:52 +0430 Subject: [PATCH] NEOS-553 Fixes schema table not loading for new job Sync flow (#945) --- frontend/apps/web/app/[account]/new/job/schema/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/apps/web/app/[account]/new/job/schema/page.tsx b/frontend/apps/web/app/[account]/new/job/schema/page.tsx index 2977449da6..d03b531636 100644 --- a/frontend/apps/web/app/[account]/new/job/schema/page.tsx +++ b/frontend/apps/web/app/[account]/new/job/schema/page.tsx @@ -118,7 +118,8 @@ function getFormValues( dbCols: DatabaseColumn[], existingData: SchemaFormValues | undefined ): SchemaFormValues { - if (existingData) { + const existingMappings = existingData?.mappings ?? []; + if (existingData && existingMappings.length > 0) { return existingData; }