From 821fedf5250e61694e6be13c10e2217060fc58d2 Mon Sep 17 00:00:00 2001 From: remittor Date: Wed, 28 Jan 2026 11:08:58 +0300 Subject: [PATCH] luci: tools: Fix error "Cannot read properties of null (reading 'autorun')" --- .../htdocs/luci-static/resources/view/zapret2/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/tools.js b/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/tools.js index edb3d47..6fa0a75 100644 --- a/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/tools.js +++ b/luci-app-zapret2/htdocs/luci-static/resources/view/zapret2/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');