|
|
@@ -324,7 +324,7 @@ export class InvestmentProposalsComponent implements OnInit {
|
|
|
this.reviewProposal = {
|
|
|
id_inversion: investmentProposalID,
|
|
|
step: "next",
|
|
|
- comentario: comentario
|
|
|
+ comentario: comentario == null ? "" : comentario
|
|
|
};
|
|
|
}
|
|
|
}).then(result => {
|
|
|
@@ -349,9 +349,13 @@ export class InvestmentProposalsComponent implements OnInit {
|
|
|
let html_input: HTMLInputElement = document.getElementById(
|
|
|
this.userList[i].name
|
|
|
) as HTMLInputElement;
|
|
|
- let html_value: string = html_input.value;
|
|
|
- if (html_input.checked == true) {
|
|
|
- array.push(html_value);
|
|
|
+ if (html_input != null) {
|
|
|
+ let html_value: string = html_input.value;
|
|
|
+ if (html_input.checked == true) {
|
|
|
+ array.push(html_value);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ array;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -455,7 +459,7 @@ export class InvestmentProposalsComponent implements OnInit {
|
|
|
this.reviewProposal = {
|
|
|
id_inversion: investmentProposalID,
|
|
|
step: "next",
|
|
|
- comentario: comentario
|
|
|
+ comentario: comentario == null ? "" : comentario
|
|
|
};
|
|
|
},
|
|
|
allowOutsideClick: () => !Swal.isLoading()
|
|
|
@@ -479,9 +483,13 @@ export class InvestmentProposalsComponent implements OnInit {
|
|
|
let html_input: HTMLInputElement = document.getElementById(
|
|
|
this.userList[i].name
|
|
|
) as HTMLInputElement;
|
|
|
- let html_value: string = html_input.value;
|
|
|
- if (html_input.checked == true) {
|
|
|
- array.push(html_value);
|
|
|
+ if (html_input != null) {
|
|
|
+ let html_value: string = html_input.value;
|
|
|
+ if (html_input.checked == true) {
|
|
|
+ array.push(html_value);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ array;
|
|
|
}
|
|
|
}
|
|
|
|