Skip to content

Commit

Permalink
add an undefined check to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
gortiz-dotcms committed Nov 14, 2024
1 parent a5bde22 commit aae7d18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -651,12 +651,14 @@ define("dojox/grid/_Grid", [
},

showMessage: function(message){
if(message){
this.messagesNode.innerHTML = message;
this.messagesNode.style.display = "";
}else{
this.messagesNode.innerHTML = "";
this.messagesNode.style.display = "none";
if (typeof messagesNode !== undefined) {
if (message) {
this.messagesNode.innerHTML = message;
this.messagesNode.style.display = "";
} else {
this.messagesNode.innerHTML = "";
this.messagesNode.style.display = "none";
}
}
},

Expand Down

0 comments on commit aae7d18

Please sign in to comment.