|
|
@ -271,14 +271,12 @@ export class Main extends Component<any, MainState> {
|
|
|
|
}) {
|
|
|
|
}) {
|
|
|
|
const listingTypeStr =
|
|
|
|
const listingTypeStr =
|
|
|
|
paramUpdates.listing_type ||
|
|
|
|
paramUpdates.listing_type ||
|
|
|
|
ListingType[getListingTypeFromProps(this.props)].toLowerCase();
|
|
|
|
ListingType[this.state.listingType].toLowerCase();
|
|
|
|
const dataTypeStr =
|
|
|
|
const dataTypeStr =
|
|
|
|
paramUpdates.data_type ||
|
|
|
|
paramUpdates.data_type || DataType[this.state.dataType].toLowerCase();
|
|
|
|
DataType[getDataTypeFromProps(this.props)].toLowerCase();
|
|
|
|
|
|
|
|
const sortStr =
|
|
|
|
const sortStr =
|
|
|
|
paramUpdates.sort ||
|
|
|
|
paramUpdates.sort || SortType[this.state.sort].toLowerCase();
|
|
|
|
SortType[getSortTypeFromProps(this.props)].toLowerCase();
|
|
|
|
const page = paramUpdates.page || this.state.page;
|
|
|
|
const page = paramUpdates.page || getPageFromProps(this.props);
|
|
|
|
|
|
|
|
this.props.history.push(
|
|
|
|
this.props.history.push(
|
|
|
|
`/home/data_type/${dataTypeStr}/listing_type/${listingTypeStr}/sort/${sortStr}/page/${page}`
|
|
|
|
`/home/data_type/${dataTypeStr}/listing_type/${listingTypeStr}/sort/${sortStr}/page/${page}`
|
|
|
|
);
|
|
|
|
);
|
|
|
|