feat: handle empty return
This commit is contained in:
@@ -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: '' };
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user