luci-base: cbi.js: properly handle falsy values in cbi_update_table()
Fixes: #5544 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit e982c05671229b3d13622b38c9536812e8c5f05c)
This commit is contained in:
parent
f3611f1973
commit
7f37a5840b
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user