From 7f37a5840b59b7c8e5801f688e741c9b4a8d5e73 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 23 Nov 2021 19:11:34 +0100 Subject: [PATCH] luci-base: cbi.js: properly handle falsy values in cbi_update_table() Fixes: #5544 Signed-off-by: Jo-Philipp Wich (cherry picked from commit e982c05671229b3d13622b38c9536812e8c5f05c) --- modules/luci-base/htdocs/luci-static/resources/cbi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index b8446ec52f..a21724c185 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -766,7 +766,7 @@ function cbi_update_table(table, data, placeholder) { var td = trow.appendChild(E('td', { 'class': titles[i].className, 'data-title': (text !== '') ? text : null - }, row[i] || '')); + }, (row[i] != null) ? row[i] : '')); td.classList.remove('th'); td.classList.add('td'); -- 2.30.2