mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Added guard statement for spatial controls (#4124)
This commit is contained in:
parent
45686a1af6
commit
b227612f6e
@ -1848,6 +1848,7 @@ class BaseDeckGLViz(BaseViz):
|
||||
def get_data(self, df):
|
||||
fd = self.form_data
|
||||
spatial = fd.get('spatial')
|
||||
if spatial:
|
||||
if spatial.get('type') == 'latlong':
|
||||
df = df.rename(columns={
|
||||
spatial.get('lonCol'): 'lon',
|
||||
|
Loading…
Reference in New Issue
Block a user