luci-mod-network: handle missing dnsrr hexdata as empty string
authorDaniel Nilsson <dannil+github@protonmail.com>
Mon, 6 Jan 2025 16:37:45 +0000 (17:37 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Mon, 6 Jan 2025 17:22:15 +0000 (17:22 +0000)
commitc9cc773449d71d930ed2fd1e4e8a1dd95d91ae25
treeecec6de71d63b0041a20e6c2b8509f1d31358755
parent7c582f150e05b612b68633b349af62ed1f4a6589
luci-mod-network: handle missing dnsrr hexdata as empty string

If the value returned from UCI was falsy, it became an empty array instead
of an empty string, which crashed the UI when trying to invoke the
non-existing replace instance function on the value.

Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js