Skip to content

Minor Bug: Entering to an undefined variable on libs/webServerPaths.js

Sebastián Felipe requested to merge xompass/Shinobi:minor-bugs into dev

There is a minor bug, the program is trying to enter:

if(s.group[params.ke] && s.group[params.ke].activeMonitors[params.id] && s.group[params.ke].activeMonitors[params.id].childNode)

But for some reason, activeMonitors does not exist when it is loading, so I modified to:

if(s.group[params.ke] && s.group[params.ke].activeMonitors && s.group[params.ke].activeMonitors[params.id] && s.group[params.ke].activeMonitors[params.id].childNode)

To be sure that exists. And avoid this kind of error on load: Screenshot_2020-08-27_at_10.54.19_AM

Thanks, Sebastián.

Merge request reports