fix: TypeError: Cannot read properties of undefined (reading 'filter') - when trying to delete a org/team with runners
close #210
This commit is contained in:
parent
78dcad0857
commit
c4201e9a68
@ -57,7 +57,10 @@ export class Runner extends Participant {
|
|||||||
* This is implemented here to avoid duplicate code in other files.
|
* This is implemented here to avoid duplicate code in other files.
|
||||||
*/
|
*/
|
||||||
public get validScans(): Scan[] {
|
public get validScans(): Scan[] {
|
||||||
return this.scans.filter(scan => scan.valid == true);
|
if (this.scans) {
|
||||||
|
return this.scans.filter(scan => scan.valid == true);
|
||||||
|
}
|
||||||
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user