diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationComplete.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationComplete.ts index 01ea6c4440..3686816d5c 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationComplete.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationComplete.ts @@ -9,7 +9,7 @@ import { imageMetadataReceived } from 'services/api/thunks/image'; import { sessionCanceled } from 'services/api/thunks/session'; import { isImageOutput } from 'services/api/guards'; import { progressImageSet } from 'features/system/store/systemSlice'; -import { api } from 'services/api'; +import { boardImagesApi } from 'services/api/endpoints/boardImages'; const moduleLog = log.child({ namespace: 'socketio' }); const nodeDenylist = ['dataURL_image']; @@ -61,7 +61,7 @@ export const addInvocationCompleteEventListener = () => { if (boardIdToAddTo && !imageDTO.is_intermediate) { dispatch( - api.endpoints.addImageToBoard.initiate({ + boardImagesApi.endpoints.addImageToBoard.initiate({ board_id: boardIdToAddTo, image_name, }) diff --git a/invokeai/frontend/web/src/features/gallery/store/boardSlice.ts b/invokeai/frontend/web/src/features/gallery/store/boardSlice.ts index 4e8af0a832..7ec74dc4bf 100644 --- a/invokeai/frontend/web/src/features/gallery/store/boardSlice.ts +++ b/invokeai/frontend/web/src/features/gallery/store/boardSlice.ts @@ -1,6 +1,6 @@ import { PayloadAction, createSlice } from '@reduxjs/toolkit'; import { RootState } from 'app/store/store'; -import { api } from 'services/api'; +import { boardsApi } from 'services/api/endpoints/boards'; type BoardsState = { searchText: string; @@ -29,7 +29,7 @@ const boardsSlice = createSlice({ }, extraReducers: (builder) => { builder.addMatcher( - api.endpoints.deleteBoard.matchFulfilled, + boardsApi.endpoints.deleteBoard.matchFulfilled, (state, action) => { if (action.meta.arg.originalArgs === state.selectedBoardId) { state.selectedBoardId = undefined;