From 744dc895e9f71c60d7af4a772ab8c0b000f01c08 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 4 Dec 2024 17:56:56 +1100 Subject: [PATCH] Fix ordering issue in notifications table (#8626) --- src/frontend/src/pages/Notifications.tsx | 2 +- .../{NotificationsTable.tsx => NotificationTable.tsx} | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) rename src/frontend/src/tables/notifications/{NotificationsTable.tsx => NotificationTable.tsx} (96%) diff --git a/src/frontend/src/pages/Notifications.tsx b/src/frontend/src/pages/Notifications.tsx index 101c3512788b..13fa75e79982 100644 --- a/src/frontend/src/pages/Notifications.tsx +++ b/src/frontend/src/pages/Notifications.tsx @@ -18,7 +18,7 @@ import { PanelGroup } from '../components/panels/PanelGroup'; import { ApiEndpoints } from '../enums/ApiEndpoints'; import { useTable } from '../hooks/UseTable'; import { apiUrl } from '../states/ApiState'; -import { NotificationTable } from '../tables/notifications/NotificationsTable'; +import { NotificationTable } from '../tables/notifications/NotificationTable'; export default function NotificationsPage() { const unreadTable = useTable('unreadnotifications'); diff --git a/src/frontend/src/tables/notifications/NotificationsTable.tsx b/src/frontend/src/tables/notifications/NotificationTable.tsx similarity index 96% rename from src/frontend/src/tables/notifications/NotificationsTable.tsx rename to src/frontend/src/tables/notifications/NotificationTable.tsx index 83fbfbb55c4c..34af987a107a 100644 --- a/src/frontend/src/tables/notifications/NotificationsTable.tsx +++ b/src/frontend/src/tables/notifications/NotificationTable.tsx @@ -24,7 +24,8 @@ export function NotificationTable({ { accessor: 'age_human', title: t`Age`, - sortable: true + sortable: true, + ordering: 'creation' }, { accessor: 'category',