diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-11-23 19:11:34 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-11-23 19:12:18 +0100 |
commit | e982c05671229b3d13622b38c9536812e8c5f05c (patch) | |
tree | 18949b207eb583c36e107c244a0baca7fd6c9471 /modules/luci-base | |
parent | a163fec44777de6b0f330975a10efc7037990288 (diff) |
luci-base: cbi.js: properly handle falsy values in cbi_update_table()
Fixes: #5544
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/cbi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index aef64d577e..9200954d1e 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -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'); |