diff --git a/static/js/browser.js b/static/js/browser.js index 6ce58ee..d42c441 100644 --- a/static/js/browser.js +++ b/static/js/browser.js @@ -46,7 +46,7 @@ oml.ui.browser = function() { .text( ui.iconInfo == 'extension' ? data.extension.toUpperCase() - : Ox.formatValue(data.size, 'B') + : Ox.formatValue(data.size || 0, 'B') ) : null, height: height, id: data.id, diff --git a/static/js/gridView.js b/static/js/gridView.js index ee7ddf2..09c68c4 100644 --- a/static/js/gridView.js +++ b/static/js/gridView.js @@ -45,7 +45,7 @@ oml.ui.gridView = function() { .text( ui.iconInfo == 'extension' ? data.extension.toUpperCase() - : Ox.formatValue(data.size, 'B') + : Ox.formatValue(data.size || 0, 'B') ) : null, height: height, id: data.id,