Fix for Image Deletion issue

This commit is contained in:
mickr777 2023-08-16 16:26:08 +10:00 committed by psychedelicious
parent ae986bf873
commit 226409107b

View File

@ -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;
}