fix: issue in getting filter_box config (#10262)

This commit is contained in:
Grace Guo
2020-07-08 17:24:21 -07:00
committed by GitHub
parent 3dfa4aa15d
commit ab5ce82f7b

View File

@@ -380,7 +380,7 @@ class FilterBox extends React.Component {
onBlur={this.onFilterMenuClose}
onMenuClose={this.onFilterMenuClose}
selectWrap={
[FILTER_CONFIG_ATTRIBUTES.SEARCH_ALL_OPTIONS] &&
filterConfig[FILTER_CONFIG_ATTRIBUTES.SEARCH_ALL_OPTIONS] &&
data.length >= FILTER_OPTIONS_LIMIT
? AsyncCreatableSelect
: CreatableSelect