From 83a98953a00770df06b30d0ecb55c6e9f890919b Mon Sep 17 00:00:00 2001 From: Sarah Kehoe <161879347+sarahkeh@users.noreply.github.com> Date: Fri, 6 Sep 2024 14:50:39 -0700 Subject: [PATCH] restored default sorting since adding media items now redirects the user to the items page (#2094) --- src/app/components/search/AllItems.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/components/search/AllItems.js b/src/app/components/search/AllItems.js index e2be536047..e23e2bd262 100644 --- a/src/app/components/search/AllItems.js +++ b/src/app/components/search/AllItems.js @@ -7,9 +7,7 @@ import { safelyParseJSON } from '../../helpers'; import CategoryIcon from '../../icons/category.svg'; export default function AllItems({ routeParams }) { - // Adding sort key to defaultQuery breaks optimisticUpdate and appending new item to list - // const defaultQuery = { sort: 'recent_activity' }; - const defaultQuery = {}; + const defaultQuery = { sort: 'recent_activity' }; return (