fix: improper handling of unknown/exited zygote status in WebUI

This commit fixes the issue where the daemon info would not be found, causing a crash in WebUI due to accessing properties of "undefined" object.
This commit is contained in:
ThePedroo
2025-05-18 12:21:32 -03:00
parent 5c74037853
commit d2a4110c9d

View File

@@ -122,6 +122,7 @@ async function getModuleNames(modules) {
moduleInfo = moduleInfo.replace(area, ',')
const info = area.substring(1, area.length - 1).split(', ')
if (info.length === 1) return; /* INFO: undefined as object */
const rootImpl = info[0].substring('Root: '.length)