mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
lint fix
This commit is contained in:
parent
a63dbb2c2d
commit
b5f23292d4
@ -15,12 +15,12 @@ export const selectListImagesQueryArgs = createMemoizedSelector(
|
|||||||
(gallery): ListImagesArgs | SkipToken =>
|
(gallery): ListImagesArgs | SkipToken =>
|
||||||
gallery.limit
|
gallery.limit
|
||||||
? {
|
? {
|
||||||
board_id: gallery.selectedBoardId,
|
board_id: gallery.selectedBoardId,
|
||||||
categories: gallery.galleryView === 'images' ? IMAGE_CATEGORIES : ASSETS_CATEGORIES,
|
categories: gallery.galleryView === 'images' ? IMAGE_CATEGORIES : ASSETS_CATEGORIES,
|
||||||
offset: gallery.offset,
|
offset: gallery.offset,
|
||||||
limit: gallery.limit,
|
limit: gallery.limit,
|
||||||
is_intermediate: false,
|
is_intermediate: false,
|
||||||
}
|
}
|
||||||
: skipToken
|
: skipToken
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -103,14 +103,14 @@ export const boardsApi = api.injectEndpoints({
|
|||||||
body: changes,
|
body: changes,
|
||||||
}),
|
}),
|
||||||
invalidatesTags: (result, error, arg) => {
|
invalidatesTags: (result, error, arg) => {
|
||||||
const tags: ApiTagDescription[] = []
|
const tags: ApiTagDescription[] = [];
|
||||||
if (Object.keys(arg.changes).includes("archived")) {
|
if (Object.keys(arg.changes).includes('archived')) {
|
||||||
tags.push({ type: 'Board', id: LIST_TAG })
|
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;
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user