iptdevs-design-system 3.1.120 → 3.1.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4088,20 +4088,29 @@ class ModalReferredComponent {
4088
4088
  token: this.baseService.getUserToken(),
4089
4089
  param: form.value.searchUser,
4090
4090
  };
4091
- this.userService.getStudent(request).subscribe((response) => {
4092
- if (response.data == null) {
4093
- this.userExists = false;
4094
- Swal.fire({
4095
- title: 'Oops...',
4096
- text: 'No hay usuarios con los parámetros ingresados',
4097
- icon: 'error',
4098
- });
4099
- }
4100
- else {
4101
- this.userExists = true;
4102
- this.allUsers = response.data;
4103
- }
4104
- });
4091
+ if (form) {
4092
+ this.userService.getStudent(request).subscribe((response) => {
4093
+ if (response.data == null) {
4094
+ this.userExists = false;
4095
+ Swal.fire({
4096
+ title: 'Oops...',
4097
+ text: 'No hay usuarios con los parámetros ingresados',
4098
+ icon: 'error',
4099
+ });
4100
+ }
4101
+ else {
4102
+ this.userExists = true;
4103
+ this.allUsers = response.data;
4104
+ }
4105
+ });
4106
+ }
4107
+ else {
4108
+ Swal.fire({
4109
+ title: 'Oops...',
4110
+ text: 'Debe digitar un parámetro para realizar la búsqueda',
4111
+ icon: 'info',
4112
+ });
4113
+ }
4105
4114
  }
4106
4115
  }
4107
4116
  ModalReferredComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: ModalReferredComponent, deps: [{ token: i1$1.FormBuilder }, { token: BaseService }, { token: UserService }], target: i0.ɵɵFactoryTarget.Component });