luci-base: ui: fix null access in ui.Table.update()
Fixes: #5702
Fixes: e0e6989a4a
("luci-base: introduce new LuCI.ui.Table class")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
b5b66e994d
commit
d29400ea09
1 changed files with 1 additions and 1 deletions
|
@ -3256,7 +3256,7 @@ var UITable = baseclass.extend(/** @lends LuCI.ui.table.prototype */ {
|
||||||
}
|
}
|
||||||
|
|
||||||
while (rows[++n])
|
while (rows[++n])
|
||||||
target.removeChild(rows[n]);
|
this.node.removeChild(rows[n]);
|
||||||
|
|
||||||
if (placeholder && this.node.firstElementChild === this.node.lastElementChild) {
|
if (placeholder && this.node.firstElementChild === this.node.lastElementChild) {
|
||||||
var trow = this.node.appendChild(E('tr', { 'class': 'tr placeholder' })),
|
var trow = this.node.appendChild(E('tr', { 'class': 'tr placeholder' })),
|
||||||
|
|
Loading…
Reference in a new issue