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:
		@@ -57,7 +57,10 @@ export class Runner extends Participant {
 | 
			
		||||
   * This is implemented here to avoid duplicate code in other files.
 | 
			
		||||
   */
 | 
			
		||||
  public get validScans(): Scan[] {
 | 
			
		||||
    return this.scans.filter(scan => scan.valid == true);
 | 
			
		||||
    if (this.scans) {
 | 
			
		||||
      return this.scans.filter(scan => scan.valid == true);
 | 
			
		||||
    }
 | 
			
		||||
    return []
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user