mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
fix(trigger): fix authentication status check
This commit is contained in:
parent
685e48636d
commit
3c1f0e1aec
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user