From cfd53b2f93c1045399792dbede294cc193a4fea6 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 3 May 2022 15:29:17 +0100 Subject: [PATCH] Fix for form issue #5669 - when in an empty state didn't correctly handle null stores. --- packages/client/src/components/app/forms/FormStep.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/app/forms/FormStep.svelte b/packages/client/src/components/app/forms/FormStep.svelte index 4441f515ee..22972c5c48 100644 --- a/packages/client/src/components/app/forms/FormStep.svelte +++ b/packages/client/src/components/app/forms/FormStep.svelte @@ -22,7 +22,7 @@ if ( formContext && $builderStore.inBuilder && - $componentStore.selectedComponentPath?.includes($component.id) + $componentStore?.selectedComponentPath?.includes($component.id) ) { formContext.formApi.setStep(step) }