From 8a8c0703b179a7cc6ceefade68f15950224444ea Mon Sep 17 00:00:00 2001 From: yessenia Date: Fri, 24 Oct 2025 11:27:17 +0800 Subject: [PATCH] feat: add datasource node readme --- web/app/components/plugins/plugin-title-info/index.tsx | 2 +- web/app/components/workflow/block-selector/utils.ts | 1 + .../workflow/nodes/_base/components/workflow-panel/index.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/plugin-title-info/index.tsx b/web/app/components/plugins/plugin-title-info/index.tsx index 2096fadbf1..d09c9cc60a 100644 --- a/web/app/components/plugins/plugin-title-info/index.tsx +++ b/web/app/components/plugins/plugin-title-info/index.tsx @@ -67,7 +67,7 @@ const PluginInfo: FC = ({ diff --git a/web/app/components/workflow/block-selector/utils.ts b/web/app/components/workflow/block-selector/utils.ts index 9b7a5fc076..4272e61644 100644 --- a/web/app/components/workflow/block-selector/utils.ts +++ b/web/app/components/workflow/block-selector/utils.ts @@ -17,6 +17,7 @@ export const transformDataSourceToTool = (dataSourceItem: DataSourceItem) => { is_authorized: dataSourceItem.is_authorized, labels: dataSourceItem.declaration.identity.tags || [], plugin_id: dataSourceItem.plugin_id, + plugin_unique_identifier: dataSourceItem.plugin_unique_identifier, tools: dataSourceItem.declaration.datasources.map((datasource) => { return { name: datasource.identity.name, diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx index d0e9de31b2..6f4cf66f1b 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx @@ -307,7 +307,7 @@ const BasePanel: FC = ({ const currentDataSource = useMemo(() => { if (data.type === BlockEnum.DataSource && data.provider_type !== DataSourceClassification.localFile) - return dataSourceList?.find(item => item.plugin_id === data.provider_id) + return dataSourceList?.find(item => item.plugin_id === data.plugin_id) }, [dataSourceList, data.provider_id, data.type, data.provider_type]) const handleAuthorizationItemClick = useCallback((credential_id: string) => {