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) { if (!imageDTO) {
return; return;
} }
dispatch(imagesToDeleteSelected([imageDTO])); dispatch(imagesToDeleteSelected(selection));
}, [dispatch, imageDTO]); }, [dispatch, imageDTO, selection]);
useHotkeys( useHotkeys(
'Shift+U', 'Shift+U',