chore: Fix sider issues

Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
mathieu.brunot 2020-10-24 03:03:16 +02:00
parent 3c181bf2a2
commit 007e59184d
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
2 changed files with 1 additions and 4 deletions

View file

@ -4,8 +4,6 @@
from __future__ import unicode_literals
import json
import frappe
from pymysql import InternalError

View file

@ -65,8 +65,7 @@ frappe.views.MapView = class MapView extends frappe.views.ListView {
if (cur_list.meta.fields.find(i => i.fieldname === 'location' && i.fieldtype === 'Geolocation')) {
this.type = 'location_field';
}
else if (cur_list.meta.fields.find(i => i.fieldname === "latitude") &&
} else if (cur_list.meta.fields.find(i => i.fieldname === "latitude") &&
cur_list.meta.fields.find(i => i.fieldname === "longitude")) {
this.type = 'coordinates';
}