fix: handle array in handleClick

This commit is contained in:
karishmas6
2024-06-25 20:19:23 +05:30
parent 499c50adac
commit d5b4dd368a

View File

@@ -58,7 +58,7 @@ export const BrowserWindow = () => {
const handleClick = useCallback(() => {
if (highlighterData) {
setSelectedElement(highlighterData);
setSelectedElement(prev => [...prev, highlighterData]);
}
}, [highlighterData]);