feat: handle parent and child selectors

This commit is contained in:
karishmas6
2024-09-02 20:23:11 +05:30
parent 27da289660
commit 45f776c6f2

View File

@@ -792,7 +792,7 @@ export const getNonUniqueSelectors = async (page: Page, coordinates: Coordinates
};
}, coordinates);
return selectors || {};
return selectors || { generalSelector: '', childSelectors: [] };
} catch (error) {
console.error('Error in getNonUniqueSelectors:', error);
return {};