From 226409107b685e1b434b3873131d7657caad76f9 Mon Sep 17 00:00:00 2001 From: mickr777 <115216705+mickr777@users.noreply.github.com> Date: Wed, 16 Aug 2023 16:26:08 +1000 Subject: [PATCH] Fix for Image Deletion issue --- .../middleware/listenerMiddleware/listeners/imageDeleted.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageDeleted.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageDeleted.ts index cdfae0095e..b419e98782 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageDeleted.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageDeleted.ts @@ -121,7 +121,7 @@ export const addRequestedMultipleImageDeletionListener = () => { effect: async (action, { dispatch, getState }) => { const { imageDTOs, imagesUsage } = action.payload; - if (imageDTOs.length < 1 || imagesUsage.length < 1) { + if (imageDTOs.length <= 1 || imagesUsage.length <= 1) { // handle singles in separate listener return; }