Check for empty resources disk data

Closes #2056
This commit is contained in:
shamoon 2023-09-24 08:31:15 -07:00
parent 63a47b1ad2
commit 6483b10eba

View File

@ -16,7 +16,7 @@ export default function Disk({ options, expanded, refresh = 1500 }) {
return <Error options={options} /> return <Error options={options} />
} }
if (!data) { if (!data || !data.drive) {
return <Resource return <Resource
icon={FiHardDrive} icon={FiHardDrive}
value="-" value="-"