mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): lint
This commit is contained in:
parent
b47afdc3b5
commit
ce64dbefce
@ -53,9 +53,7 @@ export const addRequestedSingleImageDeletionListener = () => {
|
|||||||
const { data } =
|
const { data } =
|
||||||
imagesApi.endpoints.listImages.select(baseQueryArgs)(state);
|
imagesApi.endpoints.listImages.select(baseQueryArgs)(state);
|
||||||
|
|
||||||
const cachedImageDTOs = data
|
const cachedImageDTOs = data ? imagesSelectors.selectAll(data) : [];
|
||||||
? imagesSelectors.selectAll(data)
|
|
||||||
: [];
|
|
||||||
|
|
||||||
const deletedImageIndex = cachedImageDTOs.findIndex(
|
const deletedImageIndex = cachedImageDTOs.findIndex(
|
||||||
(i) => i.image_name === image_name
|
(i) => i.image_name === image_name
|
||||||
|
@ -145,8 +145,7 @@ export const addModelsLoadedListener = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const firstModel = vaeModelsAdapterSelectors
|
const firstModel = vaeModelsAdapterSelectors.selectAll(action.payload)[0];
|
||||||
.selectAll(action.payload)[0];
|
|
||||||
|
|
||||||
if (!firstModel) {
|
if (!firstModel) {
|
||||||
// No custom VAEs loaded at all; use the default
|
// No custom VAEs loaded at all; use the default
|
||||||
|
Loading…
Reference in New Issue
Block a user