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)} )