From ec67ba61dba8fa710607288f1e2e4eea4fcf87d8 Mon Sep 17 00:00:00 2001 From: Daniel Abrao Date: Sat, 13 Apr 2024 23:57:33 -0300 Subject: [PATCH] Pass an array of selected images instead of imageDTO --- .../gallery/components/CurrentImage/CurrentImageButtons.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx b/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx index dc6d80f5ad..15ab74f44d 100644 --- a/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx @@ -103,8 +103,8 @@ const CurrentImageButtons = () => { if (!imageDTO) { return; } - dispatch(imagesToDeleteSelected([imageDTO])); - }, [dispatch, imageDTO]); + dispatch(imagesToDeleteSelected(selection)); + }, [dispatch, imageDTO, selection]); useHotkeys( 'Shift+U',