fix: lint errors

This commit is contained in:
blessedcoolant 2023-08-29 12:37:09 +12:00
parent e6b677873a
commit 9993e4b02e
2 changed files with 3 additions and 1 deletions

View File

@ -755,6 +755,7 @@ export const zCoreMetadata = z
.object({
app_version: z.string().nullish(),
generation_mode: z.string().nullish(),
created_by: z.string().nullish(),
positive_prompt: z.string().nullish(),
negative_prompt: z.string().nullish(),
width: z.number().int().nullish(),

View File

@ -1,4 +1,5 @@
import { skipToken } from '@reduxjs/toolkit/dist/query';
import { CoreMetadata } from 'features/nodes/types/types';
import { t } from 'i18next';
import { useCallback, useState } from 'react';
import { useAppToaster } from '../../../app/components/Toaster';
@ -64,7 +65,7 @@ export const usePreselectedImage = () => {
if (selectedImage.action === 'useAllParameters') {
setImageNameForMetadata(selectedImage?.imageName);
if (selectedImageMetadata) {
recallAllParameters(selectedImageMetadata.metadata);
recallAllParameters(selectedImageMetadata.metadata as CoreMetadata);
}
}
},