iptdevs-design-system 3.1.870 → 3.1.871

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.
@@ -3908,10 +3908,12 @@ class CodFormStepOneComponent extends CodFormSteps {
3908
3908
  this.codFormStepOne.controls['course_type'].value != '');
3909
3909
  }
3910
3910
  getAvailibleCourses() {
3911
- // if (this.isLoading) {
3912
- // return;
3913
- // }
3914
- this.availibleCourses = [];
3911
+ if (this.initialData != null || this.courseSelectRenovation != null) {
3912
+ return;
3913
+ }
3914
+ if (this.isLoading) {
3915
+ return;
3916
+ }
3915
3917
  if (this.validRequest()) {
3916
3918
  this.isLoading = true;
3917
3919
  let request_availibleCourses = {
@@ -3922,6 +3924,7 @@ class CodFormStepOneComponent extends CodFormSteps {
3922
3924
  };
3923
3925
  this.courseService.getAvailableCoursesByLevAgreeCType(request_availibleCourses).subscribe((response) => {
3924
3926
  if (response.data) {
3927
+ this.availibleCourses = [];
3925
3928
  let courses = response.data;
3926
3929
  this.hasAvailableCourse = true;
3927
3930
  courses.forEach(course => {