Skip to content

Commit ecfefb7

Browse files
fix: filter out dealid for consistency in dataset deals tables
1 parent b671461 commit ecfefb7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/modules/datasets/dataset/DatasetBulkDealsTable.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,18 @@ export function DatasetBulkDealsTable({
9494
[bulkDeals.length, isError, setOutdated]
9595
);
9696

97+
const filteredColumns = columns.filter((col) => col.accessorKey !== 'dealid');
98+
9799
return (
98100
<div className="space-y-6">
99101
{hasPastError && !bulkDeals.length ? (
100102
<ErrorAlert message="An error occurred during dataset bulkDeals loading." />
101103
) : (
102-
<DataTable columns={columns} data={bulkDeals} />
104+
<DataTable
105+
columns={filteredColumns}
106+
data={bulkDeals}
107+
tableLength={DETAIL_TABLE_LENGTH}
108+
/>
103109
)}
104110
<PaginatedNavigation
105111
currentPage={currentPage}

0 commit comments

Comments
 (0)