Commit 78ea295e by zhaochengxiang

bug fix

parent f16b36d3
......@@ -229,7 +229,7 @@ class Model extends React.Component {
}
onViewChange = (value) => {
this.setState({ currentView: value, keyword: '', catalogId: '' });
this.setState({ currentView: value, keyword: '', searchProperties: [], catalogId: '' });
}
onModelStateChange = (value) => {
......@@ -240,7 +240,7 @@ class Model extends React.Component {
onTreeSelect = (key, offset=null) => {
this.setState({ catalogId: key, keyword: '', offset, currentModelState: (offset!==null)?'':this.state.currentModelState }, () => {
this.setState({ catalogId: key, keyword: '', searchProperties: [], offset, currentModelState: (offset!==null)?'':this.state.currentModelState }, () => {
if (!key) {
this.setState({ tableData: [], filterTableData: [] });
} else {
......@@ -432,7 +432,7 @@ class Model extends React.Component {
}
})
} else {
this.setState({ keyword: value||'', catalogId: '' }, () => {
this.setState({ keyword: value||'', searchProperties: [], catalogId: '' }, () => {
if (value !== '') {
this.onTableChange();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment