From e49d28ced5f924868343ec42f17f3b327729f31c Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Wed, 22 May 2024 16:14:17 +0200 Subject: [PATCH] :bug: (variables) Fix session only menu bool --- .../src/features/preview/components/VariablesDrawer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/builder/src/features/preview/components/VariablesDrawer.tsx b/apps/builder/src/features/preview/components/VariablesDrawer.tsx index 2f7bef1f9..fe19529e0 100644 --- a/apps/builder/src/features/preview/components/VariablesDrawer.tsx +++ b/apps/builder/src/features/preview/components/VariablesDrawer.tsx @@ -168,7 +168,8 @@ const VariableItem = ({ b.type === LogicBlockType.SET_VARIABLE && sessionOnlySetVariableOptions.includes( b.options?.type as (typeof sessionOnlySetVariableOptions)[number] - ) + ) && + b.options?.variableId === variable.id ) const isLinkedToAnswer = setVariableAndInputBlocks.some(