Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

Commit 10ebd7c

Browse files
authored
COMPASS-4154: directly re-start explain on reset (#181)
1 parent 243b6fd commit 10ebd7c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,4 @@
181181
"lodash": "^4.17.15",
182182
"mongodb-redux-common": "^0.0.2"
183183
}
184-
}
184+
}

src/components/explain-states/explain-states.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ class ExplainStates extends Component {
156156
<div className={classnames(styles['zero-state-action'])}>
157157
<div>
158158
<TextButton
159-
className={`btn btn-primary btn-lg ${
160-
!this.props.isEditable ? 'disabled' : ''
161-
}`}
159+
className={
160+
`btn btn-primary btn-lg ${!this.props.isEditable ? 'disabled' : ''}`
161+
}
162162
text="Execute Explain"
163163
clickHandler={this.onExecuteExplainClicked.bind(this)} />
164164
</div>
@@ -200,7 +200,7 @@ class ExplainStates extends Component {
200200
actions={this.queryBarActions}
201201
buttonLabel="Explain"
202202
onApply={this.onExecuteExplainClicked.bind(this)}
203-
onReset={this.props.changeExplainPlanState.bind(this, EXPLAIN_STATES.INITIAL)}
203+
onReset={this.onExecuteExplainClicked.bind(this)}
204204
/>
205205
);
206206
}

0 commit comments

Comments
 (0)