From 4e6bf136a858fa47bd0abe78af5426735961eaf7 Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Mon, 28 Oct 2019 23:18:02 +0530 Subject: [PATCH] fix browser blank page on gateways (#8453) StorageInfo component will not be rendered if Storage used is null. --- browser/app/js/browser/StorageInfo.js | 8 +- .../js/browser/__tests__/StorageInfo.test.js | 11 +++ browser/ui-assets.go | 78 ++++++++++--------- 3 files changed, 58 insertions(+), 39 deletions(-) diff --git a/browser/app/js/browser/StorageInfo.js b/browser/app/js/browser/StorageInfo.js index 162298b21..67f51e238 100644 --- a/browser/app/js/browser/StorageInfo.js +++ b/browser/app/js/browser/StorageInfo.js @@ -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