Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #485 from plotly/n-riesco-patch-1
Browse files Browse the repository at this point in the history
scheduler: document reason to unset scheduledQuery
  • Loading branch information
Michael Fix authored Jul 10, 2018
2 parents da2609b + e5b8a6c commit adbbbad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/components/Settings/Settings.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ class Settings extends Component {
openScheduler() {
this.setState({ scheduledQuery: this.props.preview.code }, () => {
this.updateSelectedPanel(2, () => {
// Setting scheduledQuery to `null` right after opening the Schedule panel ensures that,
// when the user switches to another connector,
// `initialCode` isn't set to the `scheduledQuery` used in the previous connector.
this.setState({ scheduledQuery: null });
});
});
Expand Down

0 comments on commit adbbbad

Please sign in to comment.