[Dashboard] fix a filter refresh bug and add Test (#3967)

This commit is contained in:
Grace Guo
2017-12-01 10:58:55 -08:00
committed by GitHub
parent 84a7730f47
commit 028456572b
11 changed files with 284 additions and 112 deletions

View File

@@ -21,7 +21,7 @@ export default class CodeModal extends React.PureComponent {
}
beforeOpen() {
let code = this.props.code;
if (this.props.codeCallback) {
if (!code && this.props.codeCallback) {
code = this.props.codeCallback();
}
this.setState({ code });