mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-03 16:10:31 +00:00
dev: attempt to fix process select issue
This commit is contained in:
@@ -67,8 +67,11 @@ export class ProcessService extends Service {
|
||||
}
|
||||
|
||||
select_by_name (name) {
|
||||
// TODO: figure out why 'this.processes' doesn't work here
|
||||
const processes = Array.from(svc_process.processes_map.values())
|
||||
|
||||
const list = [];
|
||||
for ( const process of this.processes ) {
|
||||
for ( const process of processes ) {
|
||||
if ( process.name === name ) {
|
||||
list.push(process);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user