@@ -256,7 +257,7 @@ const TopicList: FC = () => {
},
{
id: 'size',
- accessorFn: (topic) => topic.logDirSummary?.totalSizeBytes ?? 0,
+ accessorFn: (topic) => Number(topic.logDirSummary?.totalSizeBytes ?? 0),
header: ({ column }) =>
,
meta: { headWidth: 'sm' as const },
cell: ({ row: { original: topic } }) => renderLogDirSummary(topic.logDirSummary),
@@ -271,7 +272,7 @@ const TopicList: FC = () => {
{
e.stopPropagation();
@@ -388,11 +389,11 @@ const TopicList: FC = () => {
}
}}
open={topicToDelete !== null}
- resourceId={topicToDelete?.topicName ?? ''}
- resourceName={topicToDelete?.topicName ?? ''}
+ resourceId={topicToDelete?.name ?? ''}
+ resourceName={topicToDelete?.name ?? ''}
resourceType="Topic"
>
- {topicToDelete?.isInternal ? (
+ {topicToDelete?.internal ? (
Warning
@@ -426,7 +427,7 @@ const TopicList: FC = () => {
}
>
- {!(table.getColumn('topicName')?.getFilterValue() as string) && (
+ {!(table.getColumn('name')?.getFilterValue() as string) && (
{
)}
table.getColumn('topicName')?.setFilterValue(e.target.value || undefined)}
+ onChange={(e) => table.getColumn('name')?.setFilterValue(e.target.value || undefined)}
placeholder="Filter by name (regexp)..."
- value={(table.getColumn('topicName')?.getFilterValue() as string) ?? ''}
+ value={(table.getColumn('name')?.getFilterValue() as string) ?? ''}
/>
- {(table.getColumn('topicName')?.getFilterValue() as string) && (
+ {(table.getColumn('name')?.getFilterValue() as string) && (