mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: lint errors
This commit is contained in:
parent
e6b677873a
commit
9993e4b02e
@ -755,6 +755,7 @@ export const zCoreMetadata = z
|
|||||||
.object({
|
.object({
|
||||||
app_version: z.string().nullish(),
|
app_version: z.string().nullish(),
|
||||||
generation_mode: z.string().nullish(),
|
generation_mode: z.string().nullish(),
|
||||||
|
created_by: z.string().nullish(),
|
||||||
positive_prompt: z.string().nullish(),
|
positive_prompt: z.string().nullish(),
|
||||||
negative_prompt: z.string().nullish(),
|
negative_prompt: z.string().nullish(),
|
||||||
width: z.number().int().nullish(),
|
width: z.number().int().nullish(),
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { skipToken } from '@reduxjs/toolkit/dist/query';
|
import { skipToken } from '@reduxjs/toolkit/dist/query';
|
||||||
|
import { CoreMetadata } from 'features/nodes/types/types';
|
||||||
import { t } from 'i18next';
|
import { t } from 'i18next';
|
||||||
import { useCallback, useState } from 'react';
|
import { useCallback, useState } from 'react';
|
||||||
import { useAppToaster } from '../../../app/components/Toaster';
|
import { useAppToaster } from '../../../app/components/Toaster';
|
||||||
@ -64,7 +65,7 @@ export const usePreselectedImage = () => {
|
|||||||
if (selectedImage.action === 'useAllParameters') {
|
if (selectedImage.action === 'useAllParameters') {
|
||||||
setImageNameForMetadata(selectedImage?.imageName);
|
setImageNameForMetadata(selectedImage?.imageName);
|
||||||
if (selectedImageMetadata) {
|
if (selectedImageMetadata) {
|
||||||
recallAllParameters(selectedImageMetadata.metadata);
|
recallAllParameters(selectedImageMetadata.metadata as CoreMetadata);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user