mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-31 06:40:42 +03:00
luci: tools: Fix error "Cannot read properties of null (reading 'autorun')"
This commit is contained in:
@@ -423,7 +423,7 @@ return baseclass.extend({
|
|||||||
let svc_autorun = _('Unknown');
|
let svc_autorun = _('Unknown');
|
||||||
let svc_daemons = _('Unknown');
|
let svc_daemons = _('Unknown');
|
||||||
|
|
||||||
if (typeof(svcinfo) == 'object') {
|
if (typeof(svcinfo) == 'object' && svcinfo?.autorun !== undefined) {
|
||||||
svc_autorun = (svcinfo.autorun) ? _('Enabled') : _('Disabled');
|
svc_autorun = (svcinfo.autorun) ? _('Enabled') : _('Disabled');
|
||||||
if (!svcinfo.dmn.inited) {
|
if (!svcinfo.dmn.inited) {
|
||||||
svc_daemons = _('Stopped');
|
svc_daemons = _('Stopped');
|
||||||
|
|||||||
Reference in New Issue
Block a user