betodealmeida closed pull request #4334: Add default value for point_radius_fixed URL: https://github.com/apache/incubator-superset/pull/4334
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/superset/viz.py b/superset/viz.py index e59835b60b..18a3d3ab70 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1956,7 +1956,8 @@ def get_properties(self, d): def get_data(self, df): fd = self.form_data - self.point_radius_fixed = fd.get('point_radius_fixed') + self.point_radius_fixed = ( + fd.get('point_radius_fixed') or {'type': 'fix', 'value': 500}) self.fixed_value = None self.dim = self.form_data.get('dimension') if self.point_radius_fixed.get('type') != 'metric': ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services