don't default to 'new' on discover page
This commit is contained in:
parent
e15998afe7
commit
fe2656cfa9
2 changed files with 1 additions and 1 deletions
|
@ -151,6 +151,7 @@ function ClaimListDiscover(props: Props) {
|
|||
const originalPageSize = pageSize || CS.PAGE_SIZE;
|
||||
const dynamicPageSize = isLargeScreen ? Math.ceil(originalPageSize * (3 / 2)) : originalPageSize;
|
||||
let orderParam = orderBy || urlParams.get(CS.ORDER_BY_KEY) || defaultOrderBy;
|
||||
|
||||
if (!orderParam) {
|
||||
if (history.action === 'POP') {
|
||||
// Reaching here means user have popped back to the page's entry point (e.g. '/$/tags' without any '?order=').
|
||||
|
|
|
@ -99,7 +99,6 @@ function DiscoverPage(props: Props) {
|
|||
limitClaimsPerChannel={3}
|
||||
header={repostedUri ? <span /> : undefined}
|
||||
tileLayout={repostedUri ? false : tileLayout}
|
||||
defaultOrderBy={CS.ORDER_BY_NEW}
|
||||
claimType={claimType ? [claimType] : undefined}
|
||||
headerLabel={headerLabel}
|
||||
tags={tags}
|
||||
|
|
Loading…
Add table
Reference in a new issue