From 27e9945395d201ad74994f29a86f0e2203c9d36d Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 6 Jun 2024 00:33:49 +0530 Subject: [PATCH] feat: remove el at the current index from the copy --- server/src/workflow-management/selector.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/workflow-management/selector.ts b/server/src/workflow-management/selector.ts index 70b6c628..05fd6a88 100644 --- a/server/src/workflow-management/selector.ts +++ b/server/src/workflow-management/selector.ts @@ -445,6 +445,8 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => { } scope.counter += 1; const newPath = [...path]; + newPath.splice(i, 1); + } }