Skip to content

Commit

Permalink
Merge pull request #1615 from raphaelrpl/b4.0.7
Browse files Browse the repository at this point in the history
 Fix update alert when no view selected
  • Loading branch information
janosimas authored Aug 27, 2018
2 parents 0ccf18d + e8e8705 commit b943c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/core/DataManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -5017,7 +5017,7 @@ var DataManager = module.exports = {
if(alert.AlertAttachment) {
var alertAttachment = alert.AlertAttachment.get();

if(alert.View.ServiceInstance.ServiceMetadata) {
if(alert.View && alert.View.ServiceInstance.ServiceMetadata) {
for(var i = 0, serviceMetadataLength = alert.View.ServiceInstance.ServiceMetadata.length; i < serviceMetadataLength; i++) {
if(alert.View.ServiceInstance.ServiceMetadata[i].dataValues.key === "maps_server") {
alertAttachment.geoserverUri = alert.View.ServiceInstance.ServiceMetadata[i].dataValues.value;
Expand Down

0 comments on commit b943c52

Please sign in to comment.