From 97fdcc0209f1e8e398416db90c5c1a5057b4aa3c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 20 Aug 2021 15:20:19 +0100 Subject: [PATCH] Fix endless loop when nesting 2 form steps inside each other --- packages/standard-components/src/forms/FormStep.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/standard-components/src/forms/FormStep.svelte b/packages/standard-components/src/forms/FormStep.svelte index 34894aa6eb..665205f7d4 100644 --- a/packages/standard-components/src/forms/FormStep.svelte +++ b/packages/standard-components/src/forms/FormStep.svelte @@ -19,8 +19,7 @@ if ( formContext && $builderStore.inBuilder && - $builderStore.selectedComponentPath?.includes($component.id) && - $formState?.currentStep !== step + $builderStore.selectedComponentPath?.includes($component.id) ) { formContext.formApi.setStep(step) }