Commit 1b45d9e0 by zhaochengxiang

bug fix

parent 30ddeff9
......@@ -16,12 +16,7 @@ const FC = (props) => {
const save = () => {
const searchProperties = basicRef.current.searchProperties
if ((searchProperties??[]).length === 0) {
showMessage('warn', '请先添加筛选条件')
return
}
close(searchProperties)
close(searchProperties??[])
}
const footer = React.useMemo(() => {
......
......@@ -316,7 +316,7 @@ class Model extends React.Component {
onSearchPropertiesCancel = (searchProperties) => {
this.setState({ selectSearchPropertiesVisible: false })
if ((searchProperties??[]).length > 0) {
if (searchProperties) {
this.setState({ loadingTableData: true, keyword: '', catalogId: '', searchProperties }, () => {
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