feat: handle empty return

This commit is contained in:
karishmas6
2024-09-02 22:37:57 +05:30
parent efb284b1e6
commit fd63b0788b

View File

@@ -781,10 +781,11 @@ export const getNonUniqueSelectors = async (page: Page, coordinates: Coordinates
};
}, coordinates);
return selectors || {};
return selectors || {generalSelector: ''};
} catch (error) {
console.error('Error in getNonUniqueSelectors:', error);
return {};
return { generalSelector: '' };
}
};