luci-base: allow sort value to be reassigned
authorDaniel Nilsson <dannil+github@protonmail.com>
Wed, 1 Jan 2025 09:40:19 +0000 (10:40 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Wed, 1 Jan 2025 13:35:25 +0000 (13:35 +0000)
commitf5c18061ed3cd5333ff0b034793d9ae08838ceb6
tree5f3fabbfaeae8fbe32b2bd8c2f4a815cf1a97ab0
parent891635090c74f53c117e2fa22442eb10a1db6a33
luci-base: allow sort value to be reassigned

Commit 234e1315073595771a7397d74a039d0eb4c1a89d 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>
modules/luci-base/htdocs/luci-static/resources/form.js