Commit 16417afd authored by caichuanming's avatar caichuanming

高级搜索空数组兼容

parent 989f979c
......@@ -361,11 +361,13 @@ class SearchView extends React.Component {
return this._renderRow(arr, index);
})}
{/* 高级搜索 */}
<SearchViewAdvanced>
{advancedSearchCols.map((arr, index) => {
return this._renderRow(arr, index);
})}
</SearchViewAdvanced>
{Array.isArray(advancedSearchCols) && advancedSearchCols.length > 0 ? (
<SearchViewAdvanced>
{advancedSearchCols.map((arr, index) => {
return this._renderRow(arr, index);
})}
</SearchViewAdvanced>
) : null}
</BIForm>
);
}
......
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