summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-opkg/htdocs/luci-static
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-opkg/htdocs/luci-static')
-rw-r--r--applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
index d4d5b8b88b..af1e972efc 100644
--- a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
+++ b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
@@ -310,8 +310,9 @@ function display(pattern)
currentDisplayRows.push([
name,
ver,
- pkg.size ? '%1024mB'.format(pkg.size)
- : (altsize ? '~%1024mB'.format(altsize) : '-'),
+ [ pkg.size || 0,
+ pkg.size ? '%1024mB'.format(pkg.size)
+ : (altsize ? '~%1024mB'.format(altsize) : '-') ],
desc,
btn
]);