invalidate board total when images deleted, only run date range logic if board has less than 20 images

This commit is contained in:
Mary Hipp 2023-08-07 10:23:02 -04:00 committed by psychedelicious
parent 06296896a9
commit 50415450d8

View File

@ -989,6 +989,7 @@ export const imagesApi = api.injectEndpoints({
: true;
if (isCacheFullyPopulated || isInDateRange) {
console.log('upserting');
// *upsert* to $cache
dispatch(
imagesApi.util.updateQueryData(