diff --git a/templates/webclient/files.html b/templates/webclient/files.html index b7d733c8..d5f4cc93 100644 --- a/templates/webclient/files.html +++ b/templates/webclient/files.html @@ -1258,7 +1258,7 @@ along with this program. If not, see . if (row["type"] == "1") { return ` ${shortened}`; } - if (row["size"] == "") { + if (row["size"] === "") { return ` ${shortened}`; } let icon = getIconForFile(data); @@ -1271,7 +1271,7 @@ along with this program. If not, see . "data": "size", "render": function (data, type, row) { if (type === 'display') { - if (data){ + if (data || data === 0){ return fileSizeIEC(data); } return ""; diff --git a/templates/webclient/sharefiles.html b/templates/webclient/sharefiles.html index 149cc4e7..a49427da 100644 --- a/templates/webclient/sharefiles.html +++ b/templates/webclient/sharefiles.html @@ -490,7 +490,7 @@ along with this program. If not, see . if (row["type"] == "1") { return ` ${shortened}`; } - if (row["size"] == "") { + if (row["size"] === "") { return ` ${shortened}`; } var icon = getIconForFile(data); @@ -503,7 +503,7 @@ along with this program. If not, see . "data": "size", "render": function (data, type, row) { if (type === 'display') { - if (data){ + if (data || data === 0){ return fileSizeIEC(data); } return "";