1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure linkType is a valid value

This commit is contained in:
Steve-Mcl 2022-02-28 19:00:58 +00:00
parent 249f7e45fb
commit b665698e78

View File

@ -305,6 +305,9 @@
$("#node-input-linkType").on("change",function(d){ $("#node-input-linkType").on("change",function(d){
updateVisibility(); updateVisibility();
}); });
if (["static","dynamic"].indexOf(this.linkType) < 0) {
$("#node-input-mode").val('static');
}
updateVisibility(); updateVisibility();
onEditPrepare(this,"link in"); onEditPrepare(this,"link in");
}, },