mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
Filter Streams fully working
This commit is contained in:
@@ -27,16 +27,14 @@ class Stories extends Component {
|
||||
}
|
||||
|
||||
onSettingChange = (setting) => (e) => {
|
||||
const {searchValue, sort, filter} = this.state;
|
||||
|
||||
this.setState({
|
||||
[setting]: e.target.value
|
||||
});
|
||||
const {searchValue} = this.state;
|
||||
const criteria = {[setting]: e.target.value};
|
||||
|
||||
this.setState(criteria);
|
||||
|
||||
this.props.fetchAssets({
|
||||
value: searchValue,
|
||||
sort,
|
||||
filter,
|
||||
...criteria,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user