From f0b1f0e5b682d60105bf870850467ec1e29e83ca Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:53:20 +1000 Subject: [PATCH] feat(ui): pass search term as-is to query The images service does not add the query filter if the search term is an empty string. --- .../frontend/web/src/features/gallery/store/gallerySelectors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/gallery/store/gallerySelectors.ts b/invokeai/frontend/web/src/features/gallery/store/gallerySelectors.ts index b9d78eb4c3..76ed4c6659 100644 --- a/invokeai/frontend/web/src/features/gallery/store/gallerySelectors.ts +++ b/invokeai/frontend/web/src/features/gallery/store/gallerySelectors.ts @@ -22,7 +22,7 @@ export const selectListImagesQueryArgs = createMemoizedSelector( is_intermediate: false, starred_first: gallery.starredFirst, order_dir: gallery.orderDir, - search_term: gallery.searchTerm.length ? gallery.searchTerm : undefined, + search_term: gallery.searchTerm, } : skipToken );