diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/boardIdSelected.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/boardIdSelected.ts index e9efa01d9a..4023151df3 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/boardIdSelected.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/boardIdSelected.ts @@ -1,8 +1,13 @@ import { isAnyOf } from '@reduxjs/toolkit'; import type { AppStartListening } from 'app/store/middleware/listenerMiddleware'; -import { boardIdSelected, galleryViewChanged, imageSelected, selectionChanged } from 'features/gallery/store/gallerySlice'; +import { selectListImagesQueryArgs } from 'features/gallery/store/gallerySelectors'; +import { + boardIdSelected, + galleryViewChanged, + imageSelected, + selectionChanged, +} from 'features/gallery/store/gallerySlice'; import { imagesApi } from 'services/api/endpoints/images'; -import { selectListImagesQueryArgs } from '../../../../../features/gallery/store/gallerySelectors'; export const addBoardIdSelectedListener = (startAppListening: AppStartListening) => { startAppListening({ 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 88f7540c66..916ec2c47f 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 @@ -150,7 +150,7 @@ export const addRequestedSingleImageDeletionListener = (startAppListening: AppSt const { data } = imagesApi.endpoints.listImages.select(baseQueryArgs)(state); if (data && data.items) { - const newlySelectedImage = data?.items.find(img => img.image_name !== imageDTO?.image_name) + const newlySelectedImage = data?.items.find((img) => img.image_name !== imageDTO?.image_name); dispatch(imageSelected(newlySelectedImage || null)); } else { dispatch(imageSelected(null));