luci-base: fix off-by-one in cbi_update_table()
Fixes: #5189 Fixes:f919635310
("luci-base: batch DOM updates to prevent slowdown") Ref:f919635310 (commitcomment-53495580)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
b178a33018
commit
7d9ab8d4a7
1 changed files with 1 additions and 1 deletions
|
@ -773,7 +773,7 @@ function cbi_update_table(table, data, placeholder) {
|
||||||
trows[n] = trow;
|
trows[n] = trow;
|
||||||
});
|
});
|
||||||
|
|
||||||
for (var i = 1; i < n; i++) {
|
for (var i = 1; i <= n; i++) {
|
||||||
if (rows[i])
|
if (rows[i])
|
||||||
target.replaceChild(trows[i], rows[i]);
|
target.replaceChild(trows[i], rows[i]);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue