mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-24 18:23:07 +08:00
fix: remove unnecessary credentials of custom tool (#2621)
This commit is contained in:
@@ -118,6 +118,13 @@ const EditCustomCollectionModal: FC<Props> = ({
|
||||
const handleSave = () => {
|
||||
const postData = clone(customCollection)
|
||||
delete postData.tools
|
||||
|
||||
if (postData.credentials.auth_type === AuthType.none) {
|
||||
delete postData.credentials.api_key_header
|
||||
delete postData.credentials.api_key_header_prefix
|
||||
delete postData.credentials.api_key_value
|
||||
}
|
||||
|
||||
if (isAdd) {
|
||||
onAdd?.(postData)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user