Arreglo encuestas filter
This commit is contained in:
		
							parent
							
								
									b5de3a3ee6
								
							
						
					
					
						commit
						4eec11079f
					
				| 
						 | 
				
			
			@ -149,7 +149,8 @@ export class EncuestaComponent implements OnInit, AfterViewInit {
 | 
			
		|||
              this.isLoading = false;
 | 
			
		||||
              const tmpEncuestas = res.body ?? [];
 | 
			
		||||
              if (this.isAdmin()) {
 | 
			
		||||
                this.encuestas = tmpEncuestas;
 | 
			
		||||
                this.encuestas = tmpEncuestas.filter(e => e.estado !== EstadoEncuesta.DELETED);
 | 
			
		||||
 | 
			
		||||
                this.encuestas.forEach(e => {
 | 
			
		||||
                  e.usuarioExtra = this.usuarioExtrasSharedCollection?.find(pU => pU.id == e.usuarioExtra?.id);
 | 
			
		||||
                });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue