Merge branch 'dev_environment' of gitlab.com:brandx/bxt-app into dev_environment

This commit is contained in:
csawatzky 2025-04-10 12:32:25 -06:00
commit 8cf97f70a6

View file

@ -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">