luci-base: cbi.js: properly handle falsy values in cbi_update_table()

Fixes: #5544
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2021-11-23 19:11:34 +01:00
parent a163fec447
commit e982c05671

View file

@ -777,7 +777,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');