feat: return empty parent & child selector on error

This commit is contained in:
karishmas6
2024-09-02 20:23:45 +05:30
parent 45f776c6f2
commit 159c6bdcf4

View File

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