Skip to content

Commit

Permalink
Merge pull request GeoNode#134 from geosolutions-it/offtherailz-fix_#133
Browse files Browse the repository at this point in the history
WIP Fix GeoNode#133 - Remove arrow function from template
  • Loading branch information
Alessio Fabiani authored Dec 20, 2018
2 parents 16d2bf9 + cd47ee5 commit aa595b1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@
});
}
let isMap = !!(ms2_config.map && ms2_config.map.info && ms2_config.map.info.id)
createMapThumbnail = () => MapStore2.triggerAction({
type: isMap && "GEONODE:CREATE_MAP_THUMBNAIL" || "GEONODE:CREATE_LAYER_THUMBNAIL"
});
createMapThumbnail = function() {
MapStore2.triggerAction({
type: isMap && "GEONODE:CREATE_MAP_THUMBNAIL" || "GEONODE:CREATE_LAYER_THUMBNAIL"
});
}
if(!isMap && ms2_config && ms2_config.map) {
let layer = ms2_config.map.layers[ms2_config.map.layers.length - 1];
let id = `${layer.name}__${ms2_config.map.layers.length - 1}`;
Expand Down

0 comments on commit aa595b1

Please sign in to comment.