Fix endless loop when nesting 2 form steps inside each other

This commit is contained in:
Andrew Kingston 2021-08-20 15:20:19 +01:00
parent 8cb9870cf7
commit c78f88b900
1 changed files with 1 additions and 2 deletions

View File

@ -19,8 +19,7 @@
if ( if (
formContext && formContext &&
$builderStore.inBuilder && $builderStore.inBuilder &&
$builderStore.selectedComponentPath?.includes($component.id) && $builderStore.selectedComponentPath?.includes($component.id)
$formState?.currentStep !== step
) { ) {
formContext.formApi.setStep(step) formContext.formApi.setStep(step)
} }