luci-mod-network: simplify cbi_update_table in dhcp.js
authorDavid Härdeman <[email protected]>
Tue, 21 Oct 2025 20:15:56 +0000 (22:15 +0200)
committerPaul Donald <[email protected]>
Fri, 24 Oct 2025 13:57:43 +0000 (15:57 +0200)
commit57afc27d2d32573e99ee35ac5535c3fd52805db4
tree753fcab6eabbf60e922c07ef67fe8b2a10370eb9
parent495380a926600d38f05ad302bf053f69647d4435
luci-mod-network: simplify cbi_update_table in dhcp.js

cbi_update_table() can already take a string suitable for
.querySelector() as its first argument. In addition, it will do the
right thing if the element isn't found, so this can be simplified a bit.

Signed-off-by: David Härdeman <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js