From 83bb20d8f3e7bd7df99d0f2fc42305892e3426b9 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 13 Nov 2023 12:18:45 -0300 Subject: [PATCH] fix(StorePage): fix sorting order in API request to use "downloads" instead of "liked_by" for popular pages The sorting order in the API request for popular pages was using the "liked_by" field instead of the correct "downloads" field. This commit fixes the sorting order to use the correct field, ensuring that popular pages are sorted based on the number of downloads. --- src/frontend/src/pages/StorePage/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/pages/StorePage/index.tsx b/src/frontend/src/pages/StorePage/index.tsx index 906d2dd62..af87b3de4 100644 --- a/src/frontend/src/pages/StorePage/index.tsx +++ b/src/frontend/src/pages/StorePage/index.tsx @@ -75,7 +75,7 @@ export default function StorePage(): JSX.Element { pageIndex, pageSize, tabActive === "All" ? null : tabActive === "Flows" ? false : true, - pageOrder === "Popular" ? "-count(liked_by)" : "name", + pageOrder === "Popular" ? "-count(downloads)" : "name", filteredCategories, null, null,