web: component: fix FilterInput

This commit is contained in:
NikolayRechkin 2019-08-14 17:23:32 +03:00
parent d440e0d3ed
commit 5085f8d3d4

View File

@ -258,7 +258,7 @@ class FilterInput extends React.Component {
options={this.props.getSortData()}
isDisabled={this.props.isDisabled}
onSelect={this.onClickSortItem}
selectedOption={this.state.sortId}
selectedOption={this.props.getSortData().length > 0 ? this.props.getSortData()[0] : {}}
onButtonClick={this.onSortDirectionClick}
sortDirection={this.state.sortDirection}
/>