mirror of
https://github.com/tale/headplane.git
synced 2026-08-28 07:57:03 +00:00
fix: filter out undefined proc pids
This commit is contained in:
@@ -47,7 +47,7 @@ async function findPid() {
|
|||||||
const pids = []
|
const pids = []
|
||||||
|
|
||||||
for (const result of results) {
|
for (const result of results) {
|
||||||
if (result.status === 'fulfilled') {
|
if (result.status === 'fulfilled' && result.value) {
|
||||||
pids.push(result.value)
|
pids.push(result.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user