From 1df7232441b7b5e3abf79739dd8c7d2193238c6d Mon Sep 17 00:00:00 2001 From: Eric Duong Date: Fri, 19 Apr 2024 23:57:43 -0400 Subject: [PATCH] chore(data-warehouse): fix back button and form reset (#21687) fix back button and form reset --- frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx b/frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx index a99f597d5a43e..2f400d9e14872 100644 --- a/frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx +++ b/frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx @@ -380,7 +380,7 @@ export const sourceWizardLogic = kea([ }), listeners(({ actions, values }) => ({ onBack: () => { - if (values.currentStep <= 2) { + if (values.currentStep <= 1) { actions.selectConnector(null) } }, @@ -447,6 +447,7 @@ export const sourceWizardLogic = kea([ }) lemonToast.success('New Data Resource Created') actions.setSourceId(id) + actions.resetSourceConnectionDetails() actions.onNext() } catch (e: any) { lemonToast.error(e.data?.message ?? e.message)