diff --git a/server/src/workflow-management/selector.ts b/server/src/workflow-management/selector.ts index 19b5567c..3d440963 100644 --- a/server/src/workflow-management/selector.ts +++ b/server/src/workflow-management/selector.ts @@ -450,7 +450,11 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => { if (scope.visited.has(newPathKey)) { return; } - + if (unique(newPath) && same(newPath, input)) { + yield newPath; + scope.visited.set(newPathKey, true); + yield* optimize(newPath, input, scope); + } } } }