diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 012b0203a..0d36bc76d 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -273,6 +273,8 @@ export function validateNode(node: NodeType, edges: Edge[]): Array { node: { template }, } = node.data; + const displayName = node.data.node.display_name; + return Object.keys(template).reduce((errors: Array, t) => { if ( template[t].required && @@ -288,7 +290,9 @@ export function validateNode(node: NodeType, edges: Edge[]): Array { node.id ) ) { - errors.push(`${type} is missing ${getFieldTitle(template, t)}.`); + errors.push( + `${displayName || type} is missing ${getFieldTitle(template, t)}.` + ); } else if ( template[t].type === "dict" && template[t].required &&