Skip to content

Commit

Permalink
AMP-24640 - fix popup for layers of type percent to show nulls correctly
Browse files Browse the repository at this point in the history
AMP-24640 - fix popup for layers of type percent to display 'No Data'
when value is null
  • Loading branch information
gmutuhu authored and jdeanquin-dg committed Mar 1, 2017
1 parent d12cf2f commit db7eff4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ module.exports = Backbone.View.extend({
value = ampFormatter.format(feature.properties.value)
}

var fundingPopupTemplate = value ? ['<strong>', feature.properties.name, '</strong>',
var fundingPopupTemplate = feature.properties.value ? ['<strong>', feature.properties.name, '</strong>',
'<br/>', formattedTitleString, '',
value, ' ', unit].join('') : ['<strong>', feature.properties.name, '</strong>',
'<br/>', self.app.translator.translateSync("amp.gis:popup-no-data","No Data")].join('');
Expand Down

0 comments on commit db7eff4

Please sign in to comment.