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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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