chore: Fix sider issues
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
parent
3c181bf2a2
commit
007e59184d
2 changed files with 1 additions and 4 deletions
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import json
|
||||
|
||||
import frappe
|
||||
|
||||
from pymysql import InternalError
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue