mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
[Dashboard] fix a filter refresh bug and add Test (#3967)
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user