correct notice stand alone display
authorymh <ymh.work@gmail.com>
Mon, 28 Nov 2016 23:11:54 +0100
changeset 453 1059a7ae018a
parent 452 85cf1c3a2fea
child 454 710a2ae08a74
correct notice stand alone display
cms/app-client/app/components/notice-location-component.js
--- a/cms/app-client/app/components/notice-location-component.js	Mon Nov 28 22:17:48 2016 +0100
+++ b/cms/app-client/app/components/notice-location-component.js	Mon Nov 28 23:11:54 2016 +0100
@@ -9,7 +9,7 @@
     return [this.get('geoInfo.latitude'), this.get('geoInfo.longitude')];
   }),
   hasCoordinates: Ember.computed('geoInfo', function() {
-    return Boolean(this.get('geoInfo').longitude) && Boolean(this.get('geoInfo').latitude);
+    return Boolean(this.get('geoInfo.longitude')) && Boolean(this.get('geoInfo.latitude'));
   }),
   geonamesLink: Ember.computed('geoInfo.ref-locs', function() {
     let link = null;