Fixed null pointer exception when deleted auth

This commit is contained in:
frikky
2020-10-10 06:56:52 +02:00
parent 5be6af8b5a
commit 67161009f8
+2 -2
View File
@@ -1031,7 +1031,7 @@ const Admin = (props) => {
console.log("Show apps with this category")
}}
>
Find app ({data.apps.length})
Find app ({data.apps === null ? 0 : data.apps.length})
</Button>
</ListItemText>
</ListItem>
@@ -1094,7 +1094,7 @@ const Admin = (props) => {
style={{minWidth: 150, maxWidth: 150}}
/>
<ListItemText
primary={data.usage.length}
primary={data.usage === null ? 0 : data.usage.length}
style={{minWidth: 150, maxWidth: 150, overflow: "hidden"}}
/>
<ListItemText