core&ui: bug fix

This commit is contained in:
undefined committed 2021-07-17 18:23:33 +08:00
1 parent 177dcd6b80
commit e9d1988cba
5 files changed
+22 -21

No files matched your search

@@ -65,7 +65,7 @@ const mapDispatchToProps = (dispatch) => ({
});
},
handleClickRefresh() {
this.loadSubmissions();
if (this.props.recordsVisible) this.loadSubmissions();
},
});
@@ -75,7 +75,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class ScratchpadTool
};
componentDidMount() {
this.props.loadSubmissions();
if (this.props.recordsVisible) this.props.loadSubmissions();
}
render() {