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
1 changed files with 3 additions and 0 deletions

View File

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