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 16e67cafbb..49a6c1265d 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 @@ -53,9 +53,7 @@ export const addRequestedSingleImageDeletionListener = () => { const { data } = imagesApi.endpoints.listImages.select(baseQueryArgs)(state); - const cachedImageDTOs = data - ? imagesSelectors.selectAll(data) - : []; + const cachedImageDTOs = data ? imagesSelectors.selectAll(data) : []; const deletedImageIndex = cachedImageDTOs.findIndex( (i) => i.image_name === image_name diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.ts index e9e9b4ada9..5abb369fb6 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/modelsLoaded.ts @@ -145,8 +145,7 @@ export const addModelsLoadedListener = () => { return; } - const firstModel = vaeModelsAdapterSelectors - .selectAll(action.payload)[0]; + const firstModel = vaeModelsAdapterSelectors.selectAll(action.payload)[0]; if (!firstModel) { // No custom VAEs loaded at all; use the default