Skip to content

Commit 9429ddf

Browse files
fix(ui): fix duplicate is_intermediate query param when fetching images
1 parent 00243eb commit 9429ddf

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/boardIdSelected.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export const addBoardIdSelectedListener = () => {
5454
filteredImages.length < board.image_count &&
5555
filteredImages.length < IMAGES_PER_PAGE
5656
) {
57-
dispatch(receivedPageOfImages({ categories, board_id }));
57+
dispatch(
58+
receivedPageOfImages({ categories, board_id, is_intermediate: false })
59+
);
5860
}
5961
},
6062
});
@@ -97,7 +99,9 @@ export const addBoardIdSelected_changeSelectedImage_listener = () => {
9799
filteredImages.length < board.image_count &&
98100
filteredImages.length < IMAGES_PER_PAGE
99101
) {
100-
dispatch(receivedPageOfImages({ categories, board_id }));
102+
dispatch(
103+
receivedPageOfImages({ categories, board_id, is_intermediate: false })
104+
);
101105
}
102106
},
103107
});

invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/imageCategoriesChanged.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const addImageCategoriesChangedListener = () => {
2020
receivedPageOfImages({
2121
categories: action.payload,
2222
board_id: state.boards.selectedBoardId,
23+
is_intermediate: false,
2324
})
2425
);
2526
}

invokeai/frontend/web/src/features/gallery/components/ImageGalleryContent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ const ImageGalleryContent = () => {
168168
receivedPageOfImages({
169169
categories,
170170
board_id: selectedBoardId,
171+
is_intermediate: false,
171172
})
172173
);
173174
}, [categories, dispatch, selectedBoardId]);

invokeai/frontend/web/src/services/api/thunks/image.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ export const imageUpdated = createAppAsyncThunk<
256256
export const IMAGES_PER_PAGE = 20;
257257

258258
const DEFAULT_IMAGES_LISTED_ARG = {
259-
isIntermediate: false,
260259
limit: IMAGES_PER_PAGE,
261260
};
262261

0 commit comments

Comments
 (0)