From 1d737874d8efdeec757e3a8e9ecc23ecf447ef3e Mon Sep 17 00:00:00 2001 From: remittor Date: Wed, 28 Jan 2026 11:10:00 +0300 Subject: [PATCH] luci: tools: Fix error "Cannot read properties of null (reading 'autorun')" --- .../htdocs/luci-static/resources/view/zapret/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js index 77bcc6c..9457d5a 100644 --- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js +++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret/tools.js @@ -423,7 +423,7 @@ return baseclass.extend({ let svc_autorun = _('Unknown'); let svc_daemons = _('Unknown'); - if (typeof(svcinfo) == 'object') { + if (typeof(svcinfo) == 'object' && svcinfo?.autorun !== undefined) { svc_autorun = (svcinfo.autorun) ? _('Enabled') : _('Disabled'); if (!svcinfo.dmn.inited) { svc_daemons = _('Stopped');