Skip to content

Commit

Permalink
chore(data-warehouse): fix back button and form reset (#21687)
Browse files Browse the repository at this point in the history
fix back button and form reset
  • Loading branch information
EDsCODE authored Apr 20, 2024
1 parent 3f6c994 commit 1df7232
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/scenes/data-warehouse/new/sourceWizardLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ export const sourceWizardLogic = kea<sourceWizardLogicType>([
}),
listeners(({ actions, values }) => ({
onBack: () => {
if (values.currentStep <= 2) {
if (values.currentStep <= 1) {
actions.selectConnector(null)
}
},
Expand Down Expand Up @@ -447,6 +447,7 @@ export const sourceWizardLogic = kea<sourceWizardLogicType>([
})
lemonToast.success('New Data Resource Created')
actions.setSourceId(id)
actions.resetSourceConnectionDetails()
actions.onNext()
} catch (e: any) {
lemonToast.error(e.data?.message ?? e.message)
Expand Down

0 comments on commit 1df7232

Please sign in to comment.