Skip to content

Commit

Permalink
remove any attributes that have null values before exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgee committed Jun 12, 2017
1 parent 6bfdb73 commit cb1ad1a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions widgets/Export.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,14 @@ define([
if (typeof(attr.feature) === 'object') {
delete attr.feature;
}

// remove any attributes that have null values
for (var key in attr) {
if (!attr[key]) {
delete attr[key];
}
}

if (feature.symbol && includeStyle) {
feature.attributes = this.convertSymbolToAttributes(feature);
}
Expand Down

0 comments on commit cb1ad1a

Please sign in to comment.