mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix no image selected on first load
This commit is contained in:
parent
68f1f87c6f
commit
01b106d939
@ -19,10 +19,10 @@ export const addFirstListImagesListener = () => {
|
|||||||
action,
|
action,
|
||||||
{ getState, dispatch, unsubscribe, cancelActiveListeners }
|
{ 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 (
|
if (
|
||||||
action.meta.arg.queryCacheKey !==
|
action.meta.arg.queryCacheKey !==
|
||||||
getListImagesUrl({ categories: IMAGE_CATEGORIES })
|
getListImagesUrl({ board_id: 'none', categories: IMAGE_CATEGORIES })
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user