Fix: use data.type instead of type when checking datasource node (#25965)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
208fe3d7de
commit
857a48012e
1 changed files with 2 additions and 2 deletions
|
|
@ -1381,8 +1381,8 @@ class RagPipelineService:
|
||||||
datasource_nodes = workflow.graph_dict.get("nodes", [])
|
datasource_nodes = workflow.graph_dict.get("nodes", [])
|
||||||
datasource_plugins = []
|
datasource_plugins = []
|
||||||
for datasource_node in datasource_nodes:
|
for datasource_node in datasource_nodes:
|
||||||
if datasource_node.get("type") == "datasource":
|
if datasource_node.get("data", {}).get("type") == "datasource":
|
||||||
datasource_node_data = datasource_node.get("data", {})
|
datasource_node_data = datasource_node["data"]
|
||||||
if not datasource_node_data:
|
if not datasource_node_data:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue