From a907179c7dd7d89a5bb25bb468494ea63c2c3bc9 Mon Sep 17 00:00:00 2001 From: Piyush Gupta Date: Tue, 24 Sep 2024 20:10:27 +0530 Subject: [PATCH] chore: variable name --- .../surveys/[surveyId]/edit/components/LogicEditorActions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/LogicEditorActions.tsx b/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/LogicEditorActions.tsx index 34ac4c0acb..4d080320fb 100644 --- a/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/LogicEditorActions.tsx +++ b/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/LogicEditorActions.tsx @@ -51,8 +51,8 @@ export function LogicEditorActions({ action?: TSurveyLogicAction ) => { const logicCopy = structuredClone(question.logic) ?? []; - const logicItem = logicCopy[logicIdx]; - const actionsClone = logicItem.actions; + const currentLogicItem = logicCopy[logicIdx]; + const actionsClone = currentLogicItem.actions; switch (operation) { case "remove":