Skip to content

Commit

Permalink
[bubbles] issue when using duplicated metrics (#7087)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Apr 24, 2019
1 parent 7788124 commit e61a8ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,11 +954,11 @@ def query_obj(self):
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
Expand Down

0 comments on commit e61a8ee

Please sign in to comment.