Skip to content

Commit

Permalink
Updated with latest changes from master
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble committed May 23, 2022
1 parent ec96632 commit 1a87d09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli/src/LoadNodesAndCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,11 @@ class LoadNodesAndCredentialsClass {
);
}
} else {
nodeVersion = (tempNode as INodeType).description.version;
// Short renaming to avoid type issues
const tmpNode = tempNode as INodeType;
nodeVersion = Array.isArray(tmpNode.description.version)
? tmpNode.description.version.slice(-1)[0]
: tmpNode.description.version;
}

if (this.includeNodes !== undefined && !this.includeNodes.includes(fullNodeName)) {
Expand Down

0 comments on commit 1a87d09

Please sign in to comment.