setFilter() {
const {router} = this.context;
const {location} = this.props;
const query = {...location.query};
if (query.sort_direction === 'desc') {
delete query.sort_direction;
} else {
query.sort_direction = 'desc';
}
router.push({...location, query, state: 'REPLACE'});
}
const query = {...location.query}; // фигня ж , попробуй такое в консоли сделай
const {query} = location;