mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix: More hints to nodes - regression for sub nodes (no-changelog) (#10690)
This commit is contained in:
@@ -645,6 +645,7 @@ export default defineComponent({
|
||||
return true;
|
||||
},
|
||||
getNodeHints(): NodeHint[] {
|
||||
try {
|
||||
if (this.node && this.nodeType) {
|
||||
const workflowNode = this.workflow.getNode(this.node.name);
|
||||
|
||||
@@ -661,7 +662,7 @@ export default defineComponent({
|
||||
this.parentNodeOutputData.length > 1 || this.parentNodePinnedData.length > 1;
|
||||
|
||||
const nodeOutputData =
|
||||
this.workflowRunData?.[this.node.name]?.[this.runIndex]?.data?.main[0] || [];
|
||||
this.workflowRunData?.[this.node.name]?.[this.runIndex]?.data?.main?.[0] || [];
|
||||
|
||||
const genericHints = getGenericHints({
|
||||
workflowNode,
|
||||
@@ -673,9 +674,15 @@ export default defineComponent({
|
||||
hasMultipleInputItems,
|
||||
});
|
||||
|
||||
return executionHints.concat(nodeHints, genericHints).filter(this.shouldHintBeDisplayed);
|
||||
return executionHints
|
||||
.concat(nodeHints, genericHints)
|
||||
.filter(this.shouldHintBeDisplayed);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error while getting node hints', error);
|
||||
}
|
||||
|
||||
return [];
|
||||
},
|
||||
onItemHover(itemIndex: number | null) {
|
||||
|
||||
Reference in New Issue
Block a user