diff --git a/invokeai/frontend/web/src/features/nodes/types/types.ts b/invokeai/frontend/web/src/features/nodes/types/types.ts index b224d66849..f6ff91b5ef 100644 --- a/invokeai/frontend/web/src/features/nodes/types/types.ts +++ b/invokeai/frontend/web/src/features/nodes/types/types.ts @@ -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(), diff --git a/invokeai/frontend/web/src/features/parameters/hooks/usePreselectedImage.ts b/invokeai/frontend/web/src/features/parameters/hooks/usePreselectedImage.ts index 6f7ac46f25..62bdab616a 100644 --- a/invokeai/frontend/web/src/features/parameters/hooks/usePreselectedImage.ts +++ b/invokeai/frontend/web/src/features/parameters/hooks/usePreselectedImage.ts @@ -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); } } },