Skip to content

Commit ec4e4c7

Browse files
committed
only check for null string when the value is a string
1 parent 3eea2cb commit ec4e4c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widgets/Report.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ define([
564564
if (field.fieldName && this.feature && this.feature.attributes) {
565565
value = this.feature.attributes[field.fieldName];
566566
}
567-
if (!value || value.toLowerCase() === 'null') {
567+
if (!value || (typeof(value) === 'string' && value.toLowerCase() === 'null')) {
568568
value = '';
569569
}
570570
if (typeof(value) === 'string') {

0 commit comments

Comments
 (0)