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:
parent
a163fec447
commit
e982c05671
1 changed files with 1 additions and 1 deletions
|
@ -777,7 +777,7 @@ function cbi_update_table(table, data, placeholder) {
|
||||||
var td = trow.appendChild(E('td', {
|
var td = trow.appendChild(E('td', {
|
||||||
'class': titles[i].className,
|
'class': titles[i].className,
|
||||||
'data-title': (text !== '') ? text : null
|
'data-title': (text !== '') ? text : null
|
||||||
}, row[i] || ''));
|
}, (row[i] != null) ? row[i] : ''));
|
||||||
|
|
||||||
td.classList.remove('th');
|
td.classList.remove('th');
|
||||||
td.classList.add('td');
|
td.classList.add('td');
|
||||||
|
|
Loading…
Reference in a new issue