michellethomas commented on a change in pull request #6277: Avoid clearing
metric when saving from datasource editor
URL:
https://github.com/apache/incubator-superset/pull/6277#discussion_r231237115
##########
File path: superset/assets/src/explore/components/controls/MetricsControl.jsx
##########
@@ -117,8 +117,8 @@ export default class MetricsControl extends
React.PureComponent {
componentWillReceiveProps(nextProps) {
if (
- this.props.columns !== nextProps.columns ||
- this.props.savedMetrics !== nextProps.savedMetrics
+ JSON.stringify(this.props.columns) !== JSON.stringify(nextProps.columns)
||
Review comment:
Thanks Max, fixed!
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]