From 50415450d8f7a316fddc513be139548130783b9a Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Mon, 7 Aug 2023 10:23:02 -0400 Subject: [PATCH] invalidate board total when images deleted, only run date range logic if board has less than 20 images --- invokeai/frontend/web/src/services/api/endpoints/images.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/invokeai/frontend/web/src/services/api/endpoints/images.ts b/invokeai/frontend/web/src/services/api/endpoints/images.ts index 0c52258f9d..34c5bdb305 100644 --- a/invokeai/frontend/web/src/services/api/endpoints/images.ts +++ b/invokeai/frontend/web/src/services/api/endpoints/images.ts @@ -989,6 +989,7 @@ export const imagesApi = api.injectEndpoints({ : true; if (isCacheFullyPopulated || isInDateRange) { + console.log('upserting'); // *upsert* to $cache dispatch( imagesApi.util.updateQueryData(