Skip to content

Commit

Permalink
Fix for museumsvictoria#192: UI may fail to render and generate error…
Browse files Browse the repository at this point in the history
… if not all node data is ready
  • Loading branch information
mcartmel authored and scroix committed Apr 1, 2024
1 parent e3506f0 commit c031182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodel-webui-js/src/nodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $.views.helpers({
return encodr(value);
},
initHid: function (id) {
if(!(id in this.data)) Object.defineProperty(this.data, id, {enumerable:false, writable:true});
if((typeof data !== 'undefined') && !(id in this.data)) Object.defineProperty(this.data, id, {enumerable:false, writable:true});
return true;
},
highlight: function(value, sub) {
Expand Down

0 comments on commit c031182

Please sign in to comment.