Skip to content

Commit

Permalink
Fixes topic sorting on size (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvorcak authored Jan 31, 2024
1 parent 38f881c commit cd032d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/pages/topics/Topic.List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ const TopicsTable: FC<{ topics: Topic[], onDelete: (record: Topic) => void }> =
return (
<DataTable<Topic>
data={topics}
sorting={true}
pagination={paginationParams}
onPaginationChange={onPaginationChange(paginationParams, ({ pageSize, pageIndex}) => {
uiSettings.topicList.pageSize = pageSize
Expand Down Expand Up @@ -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),
},
{
Expand Down

0 comments on commit cd032d7

Please sign in to comment.