mirror of
https://github.com/pgsty/minio.git
synced 2026-08-09 07:43:29 +03:00
fix browser blank page on gateways (#8453)
StorageInfo component will not be rendered if Storage used is null.
This commit is contained in:
@@ -26,7 +26,13 @@ export class StorageInfo extends React.Component {
|
||||
}
|
||||
render() {
|
||||
const { used } = this.props.storageInfo
|
||||
var totalUsed = used.reduce((v1, v2) => v1 + v2, 0)
|
||||
|
||||
if (!used) {
|
||||
return <noscript />
|
||||
}
|
||||
|
||||
const totalUsed = used.reduce((v1, v2) => v1 + v2, 0)
|
||||
|
||||
return (
|
||||
<div className="feh-used">
|
||||
<div className="fehu-chart">
|
||||
|
||||
Reference in New Issue
Block a user