Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

Issue 1287 - Profile, In-Progress, and Shared Solutions within Profile page shows 'Page 1 of 0' on page with No Results (#1290)

Michael Geefc8198dfbc00
diff --git a/packages/ui/src/components/data-table.tsx b/packages/ui/src/components/data-table.tsx
index febfaa4a..fd0a2a64 100644
--- a/packages/ui/src/components/data-table.tsx
+++ b/packages/ui/src/components/data-table.tsx
@@ -100,7 +100,7 @@ export function DataTable<TData, TValue>({ columns, data }: DataTableProps<TData
</TableBody>
</Table>
</div>
- <DataTablePagination table={table} />
+ {Boolean(table.getRowModel().rows?.length) && <DataTablePagination table={table} />}
</div>
);
}