From 3c1f0e1aece12df7e87b41bca87e840bec35c719 Mon Sep 17 00:00:00 2001 From: zhsama Date: Fri, 17 Oct 2025 17:12:58 +0800 Subject: [PATCH] fix(trigger): fix authentication status check --- .../components/workflow/nodes/trigger-plugin/use-config.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/app/components/workflow/nodes/trigger-plugin/use-config.ts b/web/app/components/workflow/nodes/trigger-plugin/use-config.ts index b3fef6b523..87f5cced05 100644 --- a/web/app/components/workflow/nodes/trigger-plugin/use-config.ts +++ b/web/app/components/workflow/nodes/trigger-plugin/use-config.ts @@ -219,9 +219,7 @@ const useConfig = (id: string, payload: PluginTriggerNodeType) => { // Authentication status check const isAuthenticated = useMemo(() => { - if (!subscriptions.length) return false - const subscription = subscriptions[0] - return subscription.credential_type !== 'unauthorized' + return subscriptions.length > 0 }, [subscriptions]) const showAuthRequired = !isAuthenticated && !!currentProvider