Pass an array of selected images instead of imageDTO

This commit is contained in:
Daniel Abrao 2024-04-13 23:57:33 -03:00 committed by psychedelicious
parent 66126996e7
commit ec67ba61db

View File

@ -103,8 +103,8 @@ const CurrentImageButtons = () => {
if (!imageDTO) {
return;
}
dispatch(imagesToDeleteSelected([imageDTO]));
}, [dispatch, imageDTO]);
dispatch(imagesToDeleteSelected(selection));
}, [dispatch, imageDTO, selection]);
useHotkeys(
'Shift+U',