From f07abfb781e6d2e3df3504395186f1e5a30ce6b9 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Thu, 11 Sep 2025 17:01:40 +0800 Subject: [PATCH] fix: unavailable credential in plugin detail --- web/app/components/plugins/plugin-auth/authorized/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/plugins/plugin-auth/authorized/index.tsx b/web/app/components/plugins/plugin-auth/authorized/index.tsx index 13265488c4..ad814b0206 100644 --- a/web/app/components/plugins/plugin-auth/authorized/index.tsx +++ b/web/app/components/plugins/plugin-auth/authorized/index.tsx @@ -174,6 +174,7 @@ const Authorized = ({ } }, [updatePluginCredential, notify, t, handleSetDoingAction, onUpdate]) const unavailableCredentials = credentials.filter(credential => credential.not_allowed_to_use) + const unavailableCredential = credentials.find(credential => credential.not_allowed_to_use && credential.is_default) return ( <> @@ -197,7 +198,7 @@ const Authorized = ({ 'w-full', isOpen && 'bg-components-button-secondary-bg-hover', )}> - + {credentials.length}  { credentials.length > 1