From 1afd38f1c04b32d4970e8ccaf0b5ab7f18e4230d Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 5 Jun 2024 10:45:15 +0530 Subject: [PATCH] feat: use bottomUpSearch for path --- server/src/workflow-management/selector.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/workflow-management/selector.ts b/server/src/workflow-management/selector.ts index 89da7f2d..b10e644e 100644 --- a/server/src/workflow-management/selector.ts +++ b/server/src/workflow-management/selector.ts @@ -159,7 +159,10 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => { rootDocument = findRootDocument(config.root, defaults); - + let path = bottomUpSearch(input, Limit.All, () => + bottomUpSearch(input, Limit.Two, () => bottomUpSearch(input, Limit.One)) + ); + } function findRootDocument(rootNode: Element | Document, defaults: Options) {