mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 08:28:03 +08:00
datasource
This commit is contained in:
@ -71,8 +71,8 @@ const Panel: FC<NodePanelProps<DataSourceNodeType>> = ({ id, data }) => {
|
||||
const { mutateAsync } = useUpdateDataSourceCredentials()
|
||||
const handleAuth = useCallback(async (value: any) => {
|
||||
await mutateAsync({
|
||||
provider: currentDataSourceItem?.provider,
|
||||
pluginId: currentDataSourceItem?.plugin_id,
|
||||
provider: currentDataSource?.provider || '',
|
||||
pluginId: currentDataSource?.plugin_id || '',
|
||||
credentials: value,
|
||||
})
|
||||
|
||||
@ -81,7 +81,7 @@ const Panel: FC<NodePanelProps<DataSourceNodeType>> = ({ id, data }) => {
|
||||
message: t('common.api.actionSuccess'),
|
||||
})
|
||||
hideAuthModal()
|
||||
}, [currentDataSourceItem, mutateAsync, notify, t, hideAuthModal])
|
||||
}, [currentDataSource, mutateAsync, notify, t, hideAuthModal])
|
||||
|
||||
return (
|
||||
<div >
|
||||
|
||||
Reference in New Issue
Block a user