From 01b106d939497c1cb9810f7026b04e1e78cdca5a Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 21 Jul 2023 20:49:46 +1000 Subject: [PATCH] fix(ui): fix no image selected on first load --- .../listeners/addFirstListImagesListener.ts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/addFirstListImagesListener.ts.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/addFirstListImagesListener.ts.ts index d01a6440a8..8a1dd2943c 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/addFirstListImagesListener.ts.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/addFirstListImagesListener.ts.ts @@ -19,10 +19,10 @@ export const addFirstListImagesListener = () => { action, { getState, dispatch, unsubscribe, cancelActiveListeners } ) => { - // Only run this listener on the first listImages request for `images` categories + // Only run this listener on the first listImages request for no-board images if ( action.meta.arg.queryCacheKey !== - getListImagesUrl({ categories: IMAGE_CATEGORIES }) + getListImagesUrl({ board_id: 'none', categories: IMAGE_CATEGORIES }) ) { return; }