This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new f1370c5 fix: add saved metrics to point size metric dropdown in
deckgl scatterplot (#9309)
f1370c5 is described below
commit f1370c5e324d7817b0fda92079178440c0832081
Author: Ville Brofeldt <[email protected]>
AuthorDate: Mon Mar 16 20:06:56 2020 +0200
fix: add saved metrics to point size metric dropdown in deckgl scatterplot
(#9309)
---
.../src/explore/components/controls/FixedOrMetricControl.jsx | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/superset-frontend/src/explore/components/controls/FixedOrMetricControl.jsx
b/superset-frontend/src/explore/components/controls/FixedOrMetricControl.jsx
index 81925a2..5ffcb39 100644
--- a/superset-frontend/src/explore/components/controls/FixedOrMetricControl.jsx
+++ b/superset-frontend/src/explore/components/controls/FixedOrMetricControl.jsx
@@ -97,6 +97,9 @@ export default class FixedOrMetricControl extends
React.Component {
const columns = this.props.datasource
? this.props.datasource.columns
: null;
+ const metrics = this.props.datasource
+ ? this.props.datasource.metrics
+ : null;
return (
<div>
<ControlHeader {...this.props} />
@@ -145,6 +148,7 @@ export default class FixedOrMetricControl extends
React.Component {
<MetricsControl
name="metric"
columns={columns}
+ savedMetrics={metrics}
multi={false}
onFocus={() => {
this.setType(controlTypes.metric);