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":