From cd032d70cca43163a6b4177ff6086eaa049c937a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Vor=C4=8D=C3=A1k?= Date: Wed, 31 Jan 2024 18:49:04 +0100 Subject: [PATCH] Fixes topic sorting on size (#1058) --- frontend/src/components/pages/topics/Topic.List.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/pages/topics/Topic.List.tsx b/frontend/src/components/pages/topics/Topic.List.tsx index 95315599b..bce78bf31 100644 --- a/frontend/src/components/pages/topics/Topic.List.tsx +++ b/frontend/src/components/pages/topics/Topic.List.tsx @@ -196,6 +196,7 @@ const TopicsTable: FC<{ topics: Topic[], onDelete: (record: Topic) => void }> = return ( data={topics} + sorting={true} pagination={paginationParams} onPaginationChange={onPaginationChange(paginationParams, ({ pageSize, pageIndex}) => { uiSettings.topicList.pageSize = pageSize @@ -226,7 +227,7 @@ const TopicsTable: FC<{ topics: Topic[], onDelete: (record: Topic) => void }> = }, { header: 'Size', - accessorKey: 'size', + accessorKey: 'logDirSummary.totalSizeBytes', cell: ({row: {original: topic}}) => renderLogDirSummary(topic.logDirSummary), }, {