From 2f3d4a5511c9a3f2e4f7004b31d8ecf867bff9d9 Mon Sep 17 00:00:00 2001 From: andres-portainer <91705312+andres-portainer@users.noreply.github.com> Date: Thu, 31 Oct 2024 17:25:38 -0300 Subject: [PATCH] fix(activity-log): fix broken sorting BE-11342 (#65) --- app/react/portainer/logs/ActivityLogsView/ActivityLogsView.tsx | 2 +- app/react/portainer/logs/ActivityLogsView/useActivityLogs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/react/portainer/logs/ActivityLogsView/ActivityLogsView.tsx b/app/react/portainer/logs/ActivityLogsView/ActivityLogsView.tsx index 24eef5b19..cae9d0702 100644 --- a/app/react/portainer/logs/ActivityLogsView/ActivityLogsView.tsx +++ b/app/react/portainer/logs/ActivityLogsView/ActivityLogsView.tsx @@ -24,7 +24,7 @@ export function ActivityLogsView() { offset, limit: tableState.pageSize, sortBy: getSortType(tableState.sortBy?.id), - desc: tableState.sortBy?.desc, + sortDesc: tableState.sortBy?.desc, search: tableState.search, ...(range ? { diff --git a/app/react/portainer/logs/ActivityLogsView/useActivityLogs.ts b/app/react/portainer/logs/ActivityLogsView/useActivityLogs.ts index fb5ba7a69..65a246f10 100644 --- a/app/react/portainer/logs/ActivityLogsView/useActivityLogs.ts +++ b/app/react/portainer/logs/ActivityLogsView/useActivityLogs.ts @@ -19,7 +19,7 @@ export interface Query { offset: number; limit: number; sortBy?: SortKey; - desc?: boolean; + sortDesc?: boolean; search: string; after?: number; before?: number;