fix(ai-builder): Fix loading of Data Table nodes for AI Builder (#20546)

This commit is contained in:
oleg 2025-10-10 10:21:21 +02:00 committed by GitHub
parent e21cc9601e
commit c21968db3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,10 @@ export class AiWorkflowBuilderService {
})
.filter(
(nodeType): nodeType is INodeTypeDescription =>
nodeType !== undefined && nodeType.hidden !== true,
// We filter out hidden nodes, except for the Data Table node which has custom hiding logic
// See more details in DataTable.node.ts#L29
nodeType !== undefined &&
(nodeType.hidden !== true || nodeType.name === 'n8n-nodes-base.dataTable'),
)
.map((nodeType, _index, nodeTypes: INodeTypeDescription[]) => {
// If the node type is a tool, we need to find the corresponding non-tool node type