fix(pages): stats being null
This commit is contained in:
parent
166087e33c
commit
ecef854d23
1 changed files with 22 additions and 19 deletions
|
@ -205,7 +205,8 @@ export default function Dashboard() {
|
||||||
onRowsPerPageChange={handleChangeRowsPerPage}
|
onRowsPerPageChange={handleChangeRowsPerPage}
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
|
{stats && (
|
||||||
|
<>
|
||||||
<Card name='Images per User' sx={{ height: '100%', my: 2 }} elevation={0} variant='outlined'>
|
<Card name='Images per User' sx={{ height: '100%', my: 2 }} elevation={0} variant='outlined'>
|
||||||
<StatTable
|
<StatTable
|
||||||
columns={[
|
columns={[
|
||||||
|
@ -226,5 +227,7 @@ export default function Dashboard() {
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
</>
|
</>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
Loading…
Reference in a new issue