From 67b5d7339946f879ba0e5a1d6ee5fac7fe9dfc55 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 15 Jul 2025 18:03:27 +0800 Subject: [PATCH] fix --- .../plugins/plugin-auth/authorize/api-key-modal.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx b/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx index 03849f1d66..672f7681f6 100644 --- a/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/api-key-modal.tsx @@ -63,7 +63,7 @@ const ApiKeyModal = ({ acc[schema.name] = schema.default return acc }, {} as Record) - const secretInput = formSchemas.find(schema => schema.type === FormTypeEnum.secretInput) + const helpField = formSchemas.find(schema => schema.url && schema.help) const renderI18nObject = useRenderI18nObject() const { mutateAsync: addPluginCredential } = useAddPluginCredentialHook(pluginPayload) const { mutateAsync: updatePluginCredential } = useUpdatePluginCredentialHook(pluginPayload) @@ -125,13 +125,13 @@ const ApiKeyModal = ({ onClose={onClose} onCancel={onClose} footerSlot={ - secretInput && ( + helpField && ( - {renderI18nObject(secretInput?.help as any)} + {renderI18nObject(helpField?.help as any)} )