initial refactor
This commit is contained in:
1 parent
a2bb096d20
commit
e887c547d7
2 files changed
+26
-50
No files matched your search
@@ -81,6 +81,10 @@ const BasicTable = ({ data, paginated }) => {
|
||||
? data.rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
|
||||
: data.rows;
|
||||
|
||||
if (!data || !data.cols || !data.rows) {
|
||||
return <div>No data</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<TableContainer component={Paper}>
|
||||
|
||||
Reference in new issue
Block a user