summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-02-27 20:33:02 +0100
committerJo-Philipp Wich <jo@mein.io>2022-02-27 20:33:02 +0100
commitd29400ea09c7de234aa9ce580c1f0567b20ec65e (patch)
treec03ed89572eeed366257e383dcf854ea29d8a9ca
parentb5b66e994dff1c73a826a5dfe54bed413b9e4913 (diff)
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>
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js
index f915afdc3a..5abd3b388d 100644
--- a/modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/modules/luci-base/htdocs/luci-static/resources/ui.js
@@ -3256,7 +3256,7 @@ var UITable = baseclass.extend(/** @lends LuCI.ui.table.prototype */ {
}
while (rows[++n])
- target.removeChild(rows[n]);
+ this.node.removeChild(rows[n]);
if (placeholder && this.node.firstElementChild === this.node.lastElementChild) {
var trow = this.node.appendChild(E('tr', { 'class': 'tr placeholder' })),