mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Update LLM applications building support (no-changelog) (#7418)
extracted out of #7336 --------- Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com> Co-authored-by: OlegIvaniv <me@olegivaniv.com> Co-authored-by: Jan Oberhauser <janober@users.noreply.github.com> Co-authored-by: Val <68596159+valya@users.noreply.github.com> Co-authored-by: Alex Grozav <alex@grozav.com> Co-authored-by: Deborah <deborah@starfallprojects.co.uk> Co-authored-by: Jesper Bylund <mail@jesperbylund.com> Co-authored-by: Jon <jonathan.bennetts@gmail.com>
This commit is contained in:
committed by
GitHub
parent
34f3f8001e
commit
91dfc4d513
@@ -274,6 +274,21 @@ export default defineComponent({
|
||||
return [];
|
||||
},
|
||||
parentNode(): string | undefined {
|
||||
const pinData = this.workflowsStore.getPinData;
|
||||
|
||||
// Return the first parent node that contains data
|
||||
for (const parentNodeName of this.parentNodes) {
|
||||
// Check first for pinned data
|
||||
if (pinData[parentNodeName]) {
|
||||
return parentNodeName;
|
||||
}
|
||||
|
||||
// Check then the data of the current execution
|
||||
if (this.workflowRunData?.[parentNodeName]) {
|
||||
return parentNodeName;
|
||||
}
|
||||
}
|
||||
|
||||
return this.parentNodes[0];
|
||||
},
|
||||
isExecutableTriggerNode(): boolean {
|
||||
@@ -617,8 +632,8 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (
|
||||
typeof this.activeNodeType.outputs === 'string' ||
|
||||
typeof this.activeNodeType.inputs === 'string'
|
||||
typeof this.activeNodeType?.outputs === 'string' ||
|
||||
typeof this.activeNodeType?.inputs === 'string'
|
||||
) {
|
||||
// TODO: We should keep track of if it actually changed and only do if required
|
||||
// Whenever a node with custom inputs and outputs gets closed redraw it in case
|
||||
|
||||
Reference in New Issue
Block a user