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>
(cherry picked from commit 7d9ab8d4a741cbc97e9553982e9e352b21ddf5f3)
This commit is contained in:
parent
d7be4983cf
commit
5806ff0531
@ -773,7 +773,7 @@ function cbi_update_table(table, data, placeholder) {
|
||||
trows[n] = trow;
|
||||
});
|
||||
|
||||
for (var i = 1; i < n; i++) {
|
||||
for (var i = 1; i <= n; i++) {
|
||||
if (rows[i])
|
||||
target.replaceChild(trows[i], rows[i]);
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user