From da5e4d9375dac089a9610dafcec54e9ef6ee6040 Mon Sep 17 00:00:00 2001 From: Wojciech Mista Date: Mon, 13 May 2024 10:55:21 +0200 Subject: [PATCH] Change product list sorting to DESC 'last updated' (#4858) * change product list sort to last updated desc * changesets --- .changeset/pretty-pandas-search.md | 5 +++++ src/products/index.tsx | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/pretty-pandas-search.md diff --git a/.changeset/pretty-pandas-search.md b/.changeset/pretty-pandas-search.md new file mode 100644 index 00000000000..1cd531a8475 --- /dev/null +++ b/.changeset/pretty-pandas-search.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Product list view will now sort by last updated product in descending order by default. diff --git a/src/products/index.tsx b/src/products/index.tsx index 93bcd271a11..4358f71d1e1 100644 --- a/src/products/index.tsx +++ b/src/products/index.tsx @@ -53,6 +53,8 @@ const ProductList: React.FC> = ({ location }) => { productKind: qs.productKind, }, ProductListUrlSortField, + ProductListUrlSortField.date, + false, ); return (