Skip to content

Commit

Permalink
restored default sorting since adding media items now redirects the u…
Browse files Browse the repository at this point in the history
…ser to the items page (#2094)
  • Loading branch information
sarahkeh authored Sep 6, 2024
1 parent 6c1c40e commit 83a9895
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/components/search/AllItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<ErrorBoundary component="AllItems">
<Search
Expand Down

0 comments on commit 83a9895

Please sign in to comment.