Skip to content

Commit

Permalink
fix(mapa-camas): handle null al borrar sector (#1974)
Browse files Browse the repository at this point in the history
  • Loading branch information
liquid36 authored Oct 20, 2020
1 parent 43f3e07 commit 2390ee8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ export class SalaComunComponent implements OnInit {
}

onSectorSelect($event, organizacion) {
this.salaComun.sectores = this.organizacionService.getRuta(organizacion, $event.value);
if ($event.value) {
this.salaComun.sectores = this.organizacionService.getRuta(organizacion, $event.value);
} else {
this.salaComun.sectores = null;

}
}

volver() {
Expand Down

0 comments on commit 2390ee8

Please sign in to comment.