chore(ui): lint

This commit is contained in:
psychedelicious 2024-01-05 16:59:43 +11:00
parent b47afdc3b5
commit ce64dbefce
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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