validacion de categorias ahora es case insensitive
This commit is contained in:
		
							parent
							
								
									fe714b9eaa
								
							
						
					
					
						commit
						d2b529d371
					
				| 
						 | 
				
			
			@ -64,7 +64,7 @@ export class CategoriaUpdateComponent implements OnInit {
 | 
			
		|||
 | 
			
		||||
  protected categoryExists(categoria: ICategoria): boolean {
 | 
			
		||||
    this.loadAll();
 | 
			
		||||
    var condicion = this.categorias!.some(cat => cat.nombre === categoria.nombre);
 | 
			
		||||
    var condicion = this.categorias!.some(cat => cat.nombre!.toLowerCase() === categoria.nombre!.toLowerCase());
 | 
			
		||||
    return condicion;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue