refactor(core): Trim down NodeHelpers (no-changelog) (#14829)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-04-23 13:46:46 +02:00
committed by GitHub
parent 88bce7fd8b
commit 3e5e3a585c
11 changed files with 432 additions and 419 deletions

View File

@@ -106,7 +106,7 @@ function getINodesFromNames(names: string[]): NodeConfig[] {
const matchedNodeType = nodeTypesStore.getNodeType(node.type);
if (matchedNodeType) {
const issues = nodeHelpers.getNodeIssues(matchedNodeType, node, workflow.value);
const stringifiedIssues = issues ? NodeHelpers.nodeIssuesToString(issues, node) : '';
const stringifiedIssues = issues ? nodeHelpers.nodeIssuesToString(issues, node) : '';
return { node, nodeType: matchedNodeType, issues: stringifiedIssues };
}
}

View File

@@ -746,7 +746,7 @@ function getNodeHints(): NodeHint[] {
const workflowNode = props.workflow.getNode(node.value.name);
if (workflowNode) {
const nodeHints = NodeHelpers.getNodeHints(props.workflow, workflowNode, nodeType.value, {
const nodeHints = nodeHelpers.getNodeHints(props.workflow, workflowNode, nodeType.value, {
runExecutionData: workflowExecution.value?.data ?? null,
runIndex: props.runIndex,
connectionInputData: parentNodeOutputData.value,