From e75a3c76f66c5bd76241fccacbea436325d1c895 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 cdfae0095e0..b419e987826 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; }