mirror of
https://github.com/langgenius/dify.git
synced 2026-03-10 03:00:20 +08:00
fix
This commit is contained in:
parent
686b4b8e0e
commit
52e7bb1848
@ -303,6 +303,7 @@ const Authorized = ({
|
||||
canOAuth={canOAuth}
|
||||
canApiKey={canApiKey}
|
||||
disabled={disabled}
|
||||
onUpdate={onUpdate}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@ -330,6 +331,7 @@ const Authorized = ({
|
||||
}}
|
||||
onRemove={handleRemove}
|
||||
disabled={disabled || doingAction}
|
||||
onUpdate={onUpdate}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ const Item = ({
|
||||
'group flex h-8 items-center rounded-lg p-1 hover:bg-state-base-hover',
|
||||
renaming && 'bg-state-base-hover',
|
||||
)}
|
||||
onClick={() => onItemClick?.(credential.id)}
|
||||
onClick={() => onItemClick?.(credential.id === '__workspace_default__' ? '' : credential.id)}
|
||||
>
|
||||
{
|
||||
renaming && (
|
||||
|
||||
@ -235,13 +235,13 @@ const BasePanel: FC<BasePanelProps> = ({
|
||||
return data.type === BlockEnum.Tool && currCollection?.allow_delete
|
||||
}, [currCollection, data.type])
|
||||
const handleAuthorizationItemClick = useCallback((credential_id: string) => {
|
||||
handleNodeDataUpdate({
|
||||
handleNodeDataUpdateWithSyncDraft({
|
||||
id,
|
||||
data: {
|
||||
credential_id: credential_id === '__workspace_default__' ? undefined : credential_id,
|
||||
credential_id,
|
||||
},
|
||||
})
|
||||
}, [handleNodeDataUpdate, id])
|
||||
}, [handleNodeDataUpdateWithSyncDraft, id])
|
||||
|
||||
if(logParams.showSpecialResultPanel) {
|
||||
return (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user