Merge branch 'dev_environment' of gitlab.com:brandx/bxt-app into dev_environment
This commit is contained in:
commit
8cf97f70a6
1 changed files with 3 additions and 3 deletions
|
|
@ -349,7 +349,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
</Card>
|
||||
)
|
||||
})}
|
||||
{rows.length < 1 &&
|
||||
{(rows && rows.length < 1) &&
|
||||
(!isLoading ?
|
||||
<Typography sx={{ textAlign: "center" }} color="textSecondary">
|
||||
{ noDataMessage ? noDataMessage : "No data."}
|
||||
|
|
@ -432,7 +432,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
</TableCell>
|
||||
)
|
||||
})
|
||||
: rows.length > 0 &&
|
||||
: (rows && rows.length > 0) &&
|
||||
Object.keys(rows[0]).map((value, index) => {
|
||||
return(
|
||||
<TableCell key={"header-cell-"+index}>
|
||||
|
|
@ -518,7 +518,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
)
|
||||
})
|
||||
}
|
||||
{rows.length < 1 && !isLoading &&
|
||||
{(rows && rows.length)< 1 && !isLoading &&
|
||||
<TableRow>
|
||||
<TableCell colSpan={6} sx={{textAlign: "center" }}>
|
||||
<Typography variant="body2" color="textSecondary">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue