fix(ui): omit search term when doing optimistic updates

This commit is contained in:
psychedelicious
2025-07-05 00:33:09 +10:00
parent 3a5392a9ee
commit 53ad45c864

View File

@@ -78,6 +78,8 @@ export const buildOnInvocationComplete = (getState: AppGetState, dispatch: AppDi
// Use the current gallery query args as base, but override board_id and categories for this specific image
const expectedQueryArgs = {
...listImageNamesArg,
// We don't have enough information to do optimistic updates when a search term is present.
search_term: '',
categories: getCategories(imageDTO),
board_id: imageDTO.board_id ?? 'none',
};