This commit is contained in:
Mary Hipp 2024-06-27 14:40:43 -04:00 committed by psychedelicious
parent a63dbb2c2d
commit b5f23292d4
2 changed files with 11 additions and 11 deletions

View File

@ -15,12 +15,12 @@ export const selectListImagesQueryArgs = createMemoizedSelector(
(gallery): ListImagesArgs | SkipToken =>
gallery.limit
? {
board_id: gallery.selectedBoardId,
categories: gallery.galleryView === 'images' ? IMAGE_CATEGORIES : ASSETS_CATEGORIES,
offset: gallery.offset,
limit: gallery.limit,
is_intermediate: false,
}
board_id: gallery.selectedBoardId,
categories: gallery.galleryView === 'images' ? IMAGE_CATEGORIES : ASSETS_CATEGORIES,
offset: gallery.offset,
limit: gallery.limit,
is_intermediate: false,
}
: skipToken
);

View File

@ -103,14 +103,14 @@ export const boardsApi = api.injectEndpoints({
body: changes,
}),
invalidatesTags: (result, error, arg) => {
const tags: ApiTagDescription[] = []
if (Object.keys(arg.changes).includes("archived")) {
tags.push({ type: 'Board', id: LIST_TAG })
const tags: ApiTagDescription[] = [];
if (Object.keys(arg.changes).includes('archived')) {
tags.push({ type: 'Board', id: LIST_TAG });
}
tags.push({ type: 'Board', id: arg.board_id })
tags.push({ type: 'Board', id: arg.board_id });
return tags
return tags;
},
}),
}),