fix(ui): fix no image selected on first load

This commit is contained in:
psychedelicious 2023-07-21 20:49:46 +10:00 committed by Kent Keirsey
parent 68f1f87c6f
commit 01b106d939

View File

@ -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;
}