From c2b3a12e6d6ddc62afd475b7423b596eb091e8d3 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Fri, 2 Aug 2024 15:02:38 +0530 Subject: [PATCH] fix: hide accordion if all are required variables. --- src/lib/wizards/functions/steps/templateVariables.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wizards/functions/steps/templateVariables.svelte b/src/lib/wizards/functions/steps/templateVariables.svelte index e832a73cd..d7a44179e 100644 --- a/src/lib/wizards/functions/steps/templateVariables.svelte +++ b/src/lib/wizards/functions/steps/templateVariables.svelte @@ -63,7 +63,7 @@ {#if $template?.variables?.length} {#if requiredVariables?.length} - {#if requiredVariables?.length === 1} + {#if requiredVariables?.length === 1 || requiredVariables.every((variable) => variable.required)}