Skip to content

Commit

Permalink
Fix search data showing null (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
wikumChamith authored Sep 30, 2024
1 parent f29296d commit 5e3108a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ function OpenmrsSearch(div, showIncludeVoided, searchHandler, selectionHandler,
var cols = this.options.fieldsAndHeaders;
rRowData = $j.map(cols, function(c) {
var data = rowData[c.fieldName];
if(data == null)
if(data == null || data === "null")
data = " ";
//Escape html
data = $j('<div/>').text(data).html();
Expand Down

0 comments on commit 5e3108a

Please sign in to comment.