From 1d537a30e7d998908589ea594f3317445531c5ba Mon Sep 17 00:00:00 2001 From: Diptesh Choudhuri Date: Wed, 28 Aug 2024 10:07:03 +0530 Subject: [PATCH] fix(frontend): delete source before processing using zod --- .../routes/_dashboard.settings.imports-and-exports._index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/frontend/app/routes/_dashboard.settings.imports-and-exports._index.tsx b/apps/frontend/app/routes/_dashboard.settings.imports-and-exports._index.tsx index 1902a7b0b1..7144e49841 100644 --- a/apps/frontend/app/routes/_dashboard.settings.imports-and-exports._index.tsx +++ b/apps/frontend/app/routes/_dashboard.settings.imports-and-exports._index.tsx @@ -78,6 +78,7 @@ export const action = unstable_defineAction(async ({ request }) => { return namedAction(request, { deployImport: async () => { const source = formData.get("source") as ImportSource; + formData.delete("source"); const values = await match(source) .with( ImportSource.StoryGraph,