mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
[bubbles] issue when using duplicated metrics (#7087)
This commit is contained in:
parent
778812419b
commit
e61a8ee6bf
@ -954,11 +954,11 @@ class BubbleViz(NVD3Viz):
|
||||
self.series = form_data.get('series') or self.entity
|
||||
d['row_limit'] = form_data.get('limit')
|
||||
|
||||
d['metrics'] = [
|
||||
d['metrics'] = list(set([
|
||||
self.z_metric,
|
||||
self.x_metric,
|
||||
self.y_metric,
|
||||
]
|
||||
]))
|
||||
if not all(d['metrics'] + [self.entity]):
|
||||
raise Exception(_('Pick a metric for x, y and size'))
|
||||
return d
|
||||
|
Loading…
Reference in New Issue
Block a user