From b5f23292d4880b10df73a867c39cf46cdf3d74e0 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Thu, 27 Jun 2024 14:40:43 -0400 Subject: [PATCH] lint fix --- .../src/features/gallery/store/gallerySelectors.ts | 12 ++++++------ .../web/src/services/api/endpoints/boards.ts | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/store/gallerySelectors.ts b/invokeai/frontend/web/src/features/gallery/store/gallerySelectors.ts index 7d17ffbafe..7c76dd158d 100644 --- a/invokeai/frontend/web/src/features/gallery/store/gallerySelectors.ts +++ b/invokeai/frontend/web/src/features/gallery/store/gallerySelectors.ts @@ -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 ); diff --git a/invokeai/frontend/web/src/services/api/endpoints/boards.ts b/invokeai/frontend/web/src/services/api/endpoints/boards.ts index ee74882ea2..177aa0e340 100644 --- a/invokeai/frontend/web/src/services/api/endpoints/boards.ts +++ b/invokeai/frontend/web/src/services/api/endpoints/boards.ts @@ -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; }, }), }),