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 } =
imagesApi.endpoints.listImages.select(baseQueryArgs)(state);
const cachedImageDTOs = data
? imagesSelectors.selectAll(data)
: [];
const cachedImageDTOs = data ? imagesSelectors.selectAll(data) : [];
const deletedImageIndex = cachedImageDTOs.findIndex(
(i) => i.image_name === image_name

View File

@ -145,8 +145,7 @@ export const addModelsLoadedListener = () => {
return;
}
const firstModel = vaeModelsAdapterSelectors
.selectAll(action.payload)[0];
const firstModel = vaeModelsAdapterSelectors.selectAll(action.payload)[0];
if (!firstModel) {
// No custom VAEs loaded at all; use the default