Skip to content

Commit

Permalink
fix(elementos-rup): check if elemento exists
Browse files Browse the repository at this point in the history
  • Loading branch information
liquid36 committed Sep 1, 2020
1 parent 66b40e4 commit bb5c96f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/modules/rup/services/elementosRUP.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ export class ElementosRUPService {
*/

populateElemento(elemento: IElementoRUP, esSolicitud: boolean) {
if (!elemento) {
return;
}
elemento.requeridos.forEach((elem) => {
if (!elem.elementoRUP) {
elem.elementoRUP = this.buscarElemento(elem.concepto, esSolicitud);
Expand Down

0 comments on commit bb5c96f

Please sign in to comment.