Merge pull request #4331 from node-red/fix-unexpected-link-validation-err

Handle undefined linkType value for existing link-call nodes
This commit is contained in:
Nick O'Leary
2023-09-19 09:18:50 +01:00
committed by GitHub

View File

@@ -275,7 +275,7 @@
value: [], value: [],
type: "link in[]", type: "link in[]",
validate: function (v, opt) { validate: function (v, opt) {
if ((this.linkType === "static" && v.length > 0) if (((this.linkType || "static") === "static" && v.length > 0)
|| this.linkType === "dynamic") { || this.linkType === "dynamic") {
return true; return true;
} }