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>
|
</Card>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
{rows.length < 1 &&
|
{(rows && rows.length < 1) &&
|
||||||
(!isLoading ?
|
(!isLoading ?
|
||||||
<Typography sx={{ textAlign: "center" }} color="textSecondary">
|
<Typography sx={{ textAlign: "center" }} color="textSecondary">
|
||||||
{ noDataMessage ? noDataMessage : "No data."}
|
{ noDataMessage ? noDataMessage : "No data."}
|
||||||
|
|
@ -432,7 +432,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
</TableCell>
|
</TableCell>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
: rows.length > 0 &&
|
: (rows && rows.length > 0) &&
|
||||||
Object.keys(rows[0]).map((value, index) => {
|
Object.keys(rows[0]).map((value, index) => {
|
||||||
return(
|
return(
|
||||||
<TableCell key={"header-cell-"+index}>
|
<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>
|
<TableRow>
|
||||||
<TableCell colSpan={6} sx={{textAlign: "center" }}>
|
<TableCell colSpan={6} sx={{textAlign: "center" }}>
|
||||||
<Typography variant="body2" color="textSecondary">
|
<Typography variant="body2" color="textSecondary">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue