guard against 'NaN PB' in icon info

This commit is contained in:
rlx 2016-02-14 20:08:26 +05:30
parent bb337a0a5d
commit 6a91ac9465
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,