Check for empty resources disk data

Closes #2056
pull/2059/head^2
shamoon 1 year ago
parent 63a47b1ad2
commit 6483b10eba

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

Loading…
Cancel
Save