This commit is contained in:
zxhlyh 2025-07-16 15:03:33 +08:00
parent 686b4b8e0e
commit 52e7bb1848
3 changed files with 6 additions and 4 deletions

View File

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

View File

@ -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 && (

View File

@ -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 (