mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Invalid NODES_INCLUDE should not crash the app (#7038)
Fixes #6683
This commit is contained in:
committed by
GitHub
parent
38579e538e
commit
04e3178901
@@ -371,7 +371,9 @@ export class LazyPackageDirectoryLoader extends PackageDirectoryLoader {
|
|||||||
if (this.includeNodes.length) {
|
if (this.includeNodes.length) {
|
||||||
const allowedNodes: typeof this.known.nodes = {};
|
const allowedNodes: typeof this.known.nodes = {};
|
||||||
for (const nodeName of this.includeNodes) {
|
for (const nodeName of this.includeNodes) {
|
||||||
allowedNodes[nodeName] = this.known.nodes[nodeName];
|
if (nodeName in this.known.nodes) {
|
||||||
|
allowedNodes[nodeName] = this.known.nodes[nodeName];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.known.nodes = allowedNodes;
|
this.known.nodes = allowedNodes;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user