hughhhh commented on code in PR #20281: URL: https://github.com/apache/superset/pull/20281#discussion_r921494761
########## superset-frontend/src/explore/components/controls/DatasourceControl/index.jsx: ########## @@ -156,33 +198,33 @@ class DatasourceControl extends React.PureComponent { if (this.props.onDatasourceSave) { this.props.onDatasourceSave(datasource); } - } + }; - toggleShowDatasource() { + toggleShowDatasource = () => { this.setState(({ showDatasource }) => ({ showDatasource: !showDatasource, Review Comment: the `!` is doing the toggle functionality logic wise -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org