Skip to content

Commit

Permalink
luci-base: allow sort value to be reassigned
Browse files Browse the repository at this point in the history
Commit 234e131 changed the "val"
variable to be a constant, but it's value is reassigned later. Change
the variable to be declared with let instead so it can be reassigned.

Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
  • Loading branch information
dannil authored and systemcrash committed Jan 1, 2025
1 parent 8916350 commit f5c1806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/luci-base/htdocs/luci-static/resources/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -3075,7 +3075,7 @@ const CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection
ev.currentTarget.parentNode.querySelectorAll('tr.cbi-section-table-row').forEach(L.bind((tr, i) => {
const sid = tr.getAttribute('data-sid');
const opt = tr.childNodes[index].getAttribute('data-name');
const val = this.cfgvalue(sid, opt);
let val = this.cfgvalue(sid, opt);

tr.querySelectorAll('.flash').forEach((n) => {
n.classList.remove('flash')
Expand Down

0 comments on commit f5c1806

Please sign in to comment.