From fe2656cfa9db5d8a57865b31bb48fa21d46a0199 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 20 Nov 2020 11:46:26 -0500 Subject: [PATCH] don't default to 'new' on discover page --- ui/component/claimListDiscover/view.jsx | 1 + ui/page/discover/view.jsx | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/claimListDiscover/view.jsx b/ui/component/claimListDiscover/view.jsx index acbdaa2a1..47f243fed 100644 --- a/ui/component/claimListDiscover/view.jsx +++ b/ui/component/claimListDiscover/view.jsx @@ -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='). diff --git a/ui/page/discover/view.jsx b/ui/page/discover/view.jsx index ca40bd2f3..573a87794 100644 --- a/ui/page/discover/view.jsx +++ b/ui/page/discover/view.jsx @@ -99,7 +99,6 @@ function DiscoverPage(props: Props) { limitClaimsPerChannel={3} header={repostedUri ? : undefined} tileLayout={repostedUri ? false : tileLayout} - defaultOrderBy={CS.ORDER_BY_NEW} claimType={claimType ? [claimType] : undefined} headerLabel={headerLabel} tags={tags}