catchup-library-web 2.2.21 → 2.2.23

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.
package/dist/index.mjs CHANGED
@@ -7698,76 +7698,88 @@ var retrieveCurrencyTypeOptionList = () => {
7698
7698
  var retrieveBrandDTOByUserProfileOptionList = (userProfile) => {
7699
7699
  const brandDTOOptionList = [];
7700
7700
  if (userProfile) {
7701
- for (const branchDTO of userProfile.branchDTOList) {
7702
- const currentBrand = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
7703
- if (brandDTOOptionList.findIndex(
7704
- (brandDTOOption) => brandDTOOption.value === currentBrand.id
7705
- ) === -1) {
7706
- brandDTOOptionList.push({
7707
- value: currentBrand.id,
7708
- fullValue: currentBrand,
7709
- text: currentBrand.name
7710
- });
7701
+ if (userProfile.branchDTOList) {
7702
+ for (const branchDTO of userProfile.branchDTOList) {
7703
+ const currentBrand = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
7704
+ if (brandDTOOptionList.findIndex(
7705
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
7706
+ ) === -1) {
7707
+ brandDTOOptionList.push({
7708
+ value: currentBrand.id,
7709
+ fullValue: currentBrand,
7710
+ text: currentBrand.name
7711
+ });
7712
+ }
7711
7713
  }
7712
7714
  }
7713
- for (const gradeDTO of userProfile.gradeDTOList) {
7714
- const currentBrand = gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
7715
- if (brandDTOOptionList.findIndex(
7716
- (brandDTOOption) => brandDTOOption.value === currentBrand.id
7717
- ) === -1) {
7718
- brandDTOOptionList.push({
7719
- value: currentBrand.id,
7720
- fullValue: currentBrand,
7721
- text: currentBrand.name
7722
- });
7715
+ if (userProfile.gradeDTOList) {
7716
+ for (const gradeDTO of userProfile.gradeDTOList) {
7717
+ const currentBrand = gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
7718
+ if (brandDTOOptionList.findIndex(
7719
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
7720
+ ) === -1) {
7721
+ brandDTOOptionList.push({
7722
+ value: currentBrand.id,
7723
+ fullValue: currentBrand,
7724
+ text: currentBrand.name
7725
+ });
7726
+ }
7723
7727
  }
7724
7728
  }
7725
- for (const seasonDTO of userProfile.seasonDTOList) {
7726
- const currentBrand = seasonDTO.institutionDTO.campusDTO.brandDTO;
7727
- if (brandDTOOptionList.findIndex(
7728
- (brandDTOOption) => brandDTOOption.value === currentBrand.id
7729
- ) === -1) {
7730
- brandDTOOptionList.push({
7731
- value: currentBrand.id,
7732
- fullValue: currentBrand,
7733
- text: currentBrand.name
7734
- });
7729
+ if (userProfile.seasonDTOList) {
7730
+ for (const seasonDTO of userProfile.seasonDTOList) {
7731
+ const currentBrand = seasonDTO.institutionDTO.campusDTO.brandDTO;
7732
+ if (brandDTOOptionList.findIndex(
7733
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
7734
+ ) === -1) {
7735
+ brandDTOOptionList.push({
7736
+ value: currentBrand.id,
7737
+ fullValue: currentBrand,
7738
+ text: currentBrand.name
7739
+ });
7740
+ }
7735
7741
  }
7736
7742
  }
7737
- for (const institutionDTO of userProfile.institutionDTOList) {
7738
- const currentBrand = institutionDTO.campusDTO.brandDTO;
7739
- if (brandDTOOptionList.findIndex(
7740
- (brandDTOOption) => brandDTOOption.value === currentBrand.id
7741
- ) === -1) {
7742
- brandDTOOptionList.push({
7743
- value: currentBrand.id,
7744
- fullValue: currentBrand,
7745
- text: currentBrand.name
7746
- });
7743
+ if (userProfile.institutionDTOList) {
7744
+ for (const institutionDTO of userProfile.institutionDTOList) {
7745
+ const currentBrand = institutionDTO.campusDTO.brandDTO;
7746
+ if (brandDTOOptionList.findIndex(
7747
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
7748
+ ) === -1) {
7749
+ brandDTOOptionList.push({
7750
+ value: currentBrand.id,
7751
+ fullValue: currentBrand,
7752
+ text: currentBrand.name
7753
+ });
7754
+ }
7747
7755
  }
7748
7756
  }
7749
- for (const campusDTO of userProfile.campusDTOList) {
7750
- const currentBrand = campusDTO.brandDTO;
7751
- if (brandDTOOptionList.findIndex(
7752
- (brandDTOOption) => brandDTOOption.value === currentBrand.id
7753
- ) === -1) {
7754
- brandDTOOptionList.push({
7755
- value: currentBrand.id,
7756
- fullValue: currentBrand,
7757
- text: currentBrand.name
7758
- });
7757
+ if (userProfile.campusDTOList) {
7758
+ for (const campusDTO of userProfile.campusDTOList) {
7759
+ const currentBrand = campusDTO.brandDTO;
7760
+ if (brandDTOOptionList.findIndex(
7761
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
7762
+ ) === -1) {
7763
+ brandDTOOptionList.push({
7764
+ value: currentBrand.id,
7765
+ fullValue: currentBrand,
7766
+ text: currentBrand.name
7767
+ });
7768
+ }
7759
7769
  }
7760
7770
  }
7761
- for (const brandDTO of userProfile.brandDTOList) {
7762
- const currentBrand = brandDTO;
7763
- if (brandDTOOptionList.findIndex(
7764
- (brandDTOOption) => brandDTOOption.value === currentBrand.id
7765
- ) === -1) {
7766
- brandDTOOptionList.push({
7767
- value: currentBrand.id,
7768
- fullValue: currentBrand,
7769
- text: currentBrand.name
7770
- });
7771
+ if (userProfile.brandDTOList) {
7772
+ for (const brandDTO of userProfile.brandDTOList) {
7773
+ const currentBrand = brandDTO;
7774
+ if (brandDTOOptionList.findIndex(
7775
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
7776
+ ) === -1) {
7777
+ brandDTOOptionList.push({
7778
+ value: currentBrand.id,
7779
+ fullValue: currentBrand,
7780
+ text: currentBrand.name
7781
+ });
7782
+ }
7771
7783
  }
7772
7784
  }
7773
7785
  }
@@ -7822,64 +7834,74 @@ var retrieveCampusDTOByUserProfileOptionList = (userProfile, selectedBrandId) =>
7822
7834
  const campusDTOOptionList = [];
7823
7835
  if (userProfile) {
7824
7836
  if (selectedBrandId) {
7825
- for (const branchDTO of userProfile.branchDTOList) {
7826
- const currentCampus = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO;
7827
- if (campusDTOOptionList.findIndex(
7828
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7829
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7830
- campusDTOOptionList.push({
7831
- value: currentCampus.id,
7832
- fullValue: currentCampus,
7833
- text: currentCampus.name
7834
- });
7837
+ if (userProfile.branchDTOList) {
7838
+ for (const branchDTO of userProfile.branchDTOList) {
7839
+ const currentCampus = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO;
7840
+ if (campusDTOOptionList.findIndex(
7841
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
7842
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7843
+ campusDTOOptionList.push({
7844
+ value: currentCampus.id,
7845
+ fullValue: currentCampus,
7846
+ text: currentCampus.name
7847
+ });
7848
+ }
7835
7849
  }
7836
7850
  }
7837
- for (const gradeDTO of userProfile.gradeDTOList) {
7838
- const currentCampus = gradeDTO.seasonDTO.institutionDTO.campusDTO;
7839
- if (campusDTOOptionList.findIndex(
7840
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7841
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7842
- campusDTOOptionList.push({
7843
- value: currentCampus.id,
7844
- fullValue: currentCampus,
7845
- text: currentCampus.name
7846
- });
7851
+ if (userProfile.gradeDTOList) {
7852
+ for (const gradeDTO of userProfile.gradeDTOList) {
7853
+ const currentCampus = gradeDTO.seasonDTO.institutionDTO.campusDTO;
7854
+ if (campusDTOOptionList.findIndex(
7855
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
7856
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7857
+ campusDTOOptionList.push({
7858
+ value: currentCampus.id,
7859
+ fullValue: currentCampus,
7860
+ text: currentCampus.name
7861
+ });
7862
+ }
7847
7863
  }
7848
7864
  }
7849
- for (const seasonDTO of userProfile.seasonDTOList) {
7850
- const currentCampus = seasonDTO.institutionDTO.campusDTO;
7851
- if (campusDTOOptionList.findIndex(
7852
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7853
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7854
- campusDTOOptionList.push({
7855
- value: currentCampus.id,
7856
- fullValue: currentCampus,
7857
- text: currentCampus.name
7858
- });
7865
+ if (userProfile.seasonDTOList) {
7866
+ for (const seasonDTO of userProfile.seasonDTOList) {
7867
+ const currentCampus = seasonDTO.institutionDTO.campusDTO;
7868
+ if (campusDTOOptionList.findIndex(
7869
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
7870
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7871
+ campusDTOOptionList.push({
7872
+ value: currentCampus.id,
7873
+ fullValue: currentCampus,
7874
+ text: currentCampus.name
7875
+ });
7876
+ }
7859
7877
  }
7860
7878
  }
7861
- for (const institutionDTO of userProfile.institutionDTOList) {
7862
- const currentCampus = institutionDTO.campusDTO;
7863
- if (campusDTOOptionList.findIndex(
7864
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7865
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7866
- campusDTOOptionList.push({
7867
- value: currentCampus.id,
7868
- fullValue: currentCampus,
7869
- text: currentCampus.name
7870
- });
7879
+ if (userProfile.institutionDTOList) {
7880
+ for (const institutionDTO of userProfile.institutionDTOList) {
7881
+ const currentCampus = institutionDTO.campusDTO;
7882
+ if (campusDTOOptionList.findIndex(
7883
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
7884
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7885
+ campusDTOOptionList.push({
7886
+ value: currentCampus.id,
7887
+ fullValue: currentCampus,
7888
+ text: currentCampus.name
7889
+ });
7890
+ }
7871
7891
  }
7872
7892
  }
7873
- for (const campusDTO of userProfile.campusDTOList) {
7874
- const currentCampus = campusDTO;
7875
- if (campusDTOOptionList.findIndex(
7876
- (campusDTOOption) => campusDTOOption.value === currentCampus.id
7877
- ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7878
- campusDTOOptionList.push({
7879
- value: currentCampus.id,
7880
- fullValue: currentCampus,
7881
- text: currentCampus.name
7882
- });
7893
+ if (userProfile.campusDTOList) {
7894
+ for (const campusDTO of userProfile.campusDTOList) {
7895
+ const currentCampus = campusDTO;
7896
+ if (campusDTOOptionList.findIndex(
7897
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
7898
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
7899
+ campusDTOOptionList.push({
7900
+ value: currentCampus.id,
7901
+ fullValue: currentCampus,
7902
+ text: currentCampus.name
7903
+ });
7904
+ }
7883
7905
  }
7884
7906
  }
7885
7907
  return campusDTOOptionList;
@@ -7891,52 +7913,60 @@ var retrieveInstitutionDTOByUserProfileOptionList = (userProfile, selectedBrandI
7891
7913
  const institutionDTOOptionList = [];
7892
7914
  if (userProfile) {
7893
7915
  if (selectedCampusId) {
7894
- for (const branchDTO of userProfile.branchDTOList) {
7895
- const currentInstitution = branchDTO.gradeDTO.seasonDTO.institutionDTO;
7896
- if (institutionDTOOptionList.findIndex(
7897
- (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7898
- ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7899
- institutionDTOOptionList.push({
7900
- value: currentInstitution.id,
7901
- fullValue: currentInstitution,
7902
- text: currentInstitution.name
7903
- });
7916
+ if (userProfile.branchDTOList) {
7917
+ for (const branchDTO of userProfile.branchDTOList) {
7918
+ const currentInstitution = branchDTO.gradeDTO.seasonDTO.institutionDTO;
7919
+ if (institutionDTOOptionList.findIndex(
7920
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7921
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7922
+ institutionDTOOptionList.push({
7923
+ value: currentInstitution.id,
7924
+ fullValue: currentInstitution,
7925
+ text: currentInstitution.name
7926
+ });
7927
+ }
7904
7928
  }
7905
7929
  }
7906
- for (const gradeDTO of userProfile.gradeDTOList) {
7907
- const currentInstitution = gradeDTO.seasonDTO.institutionDTO;
7908
- if (institutionDTOOptionList.findIndex(
7909
- (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7910
- ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7911
- institutionDTOOptionList.push({
7912
- value: currentInstitution.id,
7913
- fullValue: currentInstitution,
7914
- text: currentInstitution.name
7915
- });
7930
+ if (userProfile.gradeDTOList) {
7931
+ for (const gradeDTO of userProfile.gradeDTOList) {
7932
+ const currentInstitution = gradeDTO.seasonDTO.institutionDTO;
7933
+ if (institutionDTOOptionList.findIndex(
7934
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7935
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7936
+ institutionDTOOptionList.push({
7937
+ value: currentInstitution.id,
7938
+ fullValue: currentInstitution,
7939
+ text: currentInstitution.name
7940
+ });
7941
+ }
7916
7942
  }
7917
7943
  }
7918
- for (const seasonDTO of userProfile.seasonDTOList) {
7919
- const currentInstitution = seasonDTO.institutionDTO;
7920
- if (institutionDTOOptionList.findIndex(
7921
- (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7922
- ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7923
- institutionDTOOptionList.push({
7924
- value: currentInstitution.id,
7925
- fullValue: currentInstitution,
7926
- text: currentInstitution.name
7927
- });
7944
+ if (userProfile.seasonDTOList) {
7945
+ for (const seasonDTO of userProfile.seasonDTOList) {
7946
+ const currentInstitution = seasonDTO.institutionDTO;
7947
+ if (institutionDTOOptionList.findIndex(
7948
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7949
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7950
+ institutionDTOOptionList.push({
7951
+ value: currentInstitution.id,
7952
+ fullValue: currentInstitution,
7953
+ text: currentInstitution.name
7954
+ });
7955
+ }
7928
7956
  }
7929
7957
  }
7930
- for (const institutionDTO of userProfile.institutionDTOList) {
7931
- const currentInstitution = institutionDTO;
7932
- if (institutionDTOOptionList.findIndex(
7933
- (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7934
- ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7935
- institutionDTOOptionList.push({
7936
- value: currentInstitution.id,
7937
- fullValue: currentInstitution,
7938
- text: currentInstitution.name
7939
- });
7958
+ if (userProfile.institutionDTOList) {
7959
+ for (const institutionDTO of userProfile.institutionDTOList) {
7960
+ const currentInstitution = institutionDTO;
7961
+ if (institutionDTOOptionList.findIndex(
7962
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
7963
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
7964
+ institutionDTOOptionList.push({
7965
+ value: currentInstitution.id,
7966
+ fullValue: currentInstitution,
7967
+ text: currentInstitution.name
7968
+ });
7969
+ }
7940
7970
  }
7941
7971
  }
7942
7972
  }
@@ -7947,40 +7977,46 @@ var retrieveSeasonDTOByUserProfileOptionList = (userProfile, selectedBrandId, se
7947
7977
  const seasonDTOOptionList = [];
7948
7978
  if (userProfile) {
7949
7979
  if (selectedInstitutionId) {
7950
- for (const branchDTO of userProfile.branchDTOList) {
7951
- const currentSeason = branchDTO.gradeDTO.seasonDTO;
7952
- if (seasonDTOOptionList.findIndex(
7953
- (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
7954
- ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
7955
- seasonDTOOptionList.push({
7956
- value: currentSeason.id,
7957
- fullValue: currentSeason,
7958
- text: currentSeason.name
7959
- });
7980
+ if (userProfile.branchDTOList) {
7981
+ for (const branchDTO of userProfile.branchDTOList) {
7982
+ const currentSeason = branchDTO.gradeDTO.seasonDTO;
7983
+ if (seasonDTOOptionList.findIndex(
7984
+ (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
7985
+ ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
7986
+ seasonDTOOptionList.push({
7987
+ value: currentSeason.id,
7988
+ fullValue: currentSeason,
7989
+ text: currentSeason.name
7990
+ });
7991
+ }
7960
7992
  }
7961
7993
  }
7962
- for (const gradeDTO of userProfile.gradeDTOList) {
7963
- const currentSeason = gradeDTO.seasonDTO;
7964
- if (seasonDTOOptionList.findIndex(
7965
- (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
7966
- ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
7967
- seasonDTOOptionList.push({
7968
- value: currentSeason.id,
7969
- fullValue: currentSeason,
7970
- text: currentSeason.name
7971
- });
7994
+ if (userProfile.gradeDTOList) {
7995
+ for (const gradeDTO of userProfile.gradeDTOList) {
7996
+ const currentSeason = gradeDTO.seasonDTO;
7997
+ if (seasonDTOOptionList.findIndex(
7998
+ (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
7999
+ ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
8000
+ seasonDTOOptionList.push({
8001
+ value: currentSeason.id,
8002
+ fullValue: currentSeason,
8003
+ text: currentSeason.name
8004
+ });
8005
+ }
7972
8006
  }
7973
8007
  }
7974
- for (const seasonDTO of userProfile.seasonDTOList) {
7975
- const currentSeason = seasonDTO;
7976
- if (seasonDTOOptionList.findIndex(
7977
- (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
7978
- ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
7979
- seasonDTOOptionList.push({
7980
- value: currentSeason.id,
7981
- fullValue: currentSeason,
7982
- text: currentSeason.name
7983
- });
8008
+ if (userProfile.seasonDTOList) {
8009
+ for (const seasonDTO of userProfile.seasonDTOList) {
8010
+ const currentSeason = seasonDTO;
8011
+ if (seasonDTOOptionList.findIndex(
8012
+ (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
8013
+ ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
8014
+ seasonDTOOptionList.push({
8015
+ value: currentSeason.id,
8016
+ fullValue: currentSeason,
8017
+ text: currentSeason.name
8018
+ });
8019
+ }
7984
8020
  }
7985
8021
  }
7986
8022
  }
@@ -7991,28 +8027,32 @@ var retrieveGradeDTOByUserProfileOptionList = (userProfile, selectedBrandId, sel
7991
8027
  const gradeDTOOptionList = [];
7992
8028
  if (userProfile) {
7993
8029
  if (selectedSeasonId) {
7994
- for (const branchDTO of userProfile.branchDTOList) {
7995
- const currentGrade = branchDTO.gradeDTO;
7996
- if (gradeDTOOptionList.findIndex(
7997
- (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
7998
- ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
7999
- gradeDTOOptionList.push({
8000
- value: currentGrade.id,
8001
- fullValue: currentGrade,
8002
- text: currentGrade.name
8003
- });
8030
+ if (userProfile.branchDTOList) {
8031
+ for (const branchDTO of userProfile.branchDTOList) {
8032
+ const currentGrade = branchDTO.gradeDTO;
8033
+ if (gradeDTOOptionList.findIndex(
8034
+ (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
8035
+ ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
8036
+ gradeDTOOptionList.push({
8037
+ value: currentGrade.id,
8038
+ fullValue: currentGrade,
8039
+ text: currentGrade.name
8040
+ });
8041
+ }
8004
8042
  }
8005
8043
  }
8006
- for (const gradeDTO of userProfile.gradeDTOList) {
8007
- const currentGrade = gradeDTO;
8008
- if (gradeDTOOptionList.findIndex(
8009
- (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
8010
- ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
8011
- gradeDTOOptionList.push({
8012
- value: currentGrade.id,
8013
- fullValue: currentGrade,
8014
- text: currentGrade.name
8015
- });
8044
+ if (userProfile.gradeDTOList) {
8045
+ for (const gradeDTO of userProfile.gradeDTOList) {
8046
+ const currentGrade = gradeDTO;
8047
+ if (gradeDTOOptionList.findIndex(
8048
+ (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
8049
+ ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
8050
+ gradeDTOOptionList.push({
8051
+ value: currentGrade.id,
8052
+ fullValue: currentGrade,
8053
+ text: currentGrade.name
8054
+ });
8055
+ }
8016
8056
  }
8017
8057
  }
8018
8058
  }
@@ -8023,16 +8063,18 @@ var retrieveBranchDTOByUserProfileOptionList = (userProfile, selectedBrandId, se
8023
8063
  const branchDTOOptionList = [];
8024
8064
  if (userProfile) {
8025
8065
  if (selectedGradeId) {
8026
- for (const branchDTO of userProfile.branchDTOList) {
8027
- const currentBranch = branchDTO;
8028
- if (branchDTOOptionList.findIndex(
8029
- (branchDTOOption) => branchDTOOption.value === currentBranch.id
8030
- ) === -1 && currentBranch.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentBranch.gradeDTO.id === parseFloat(selectedGradeId)) {
8031
- branchDTOOptionList.push({
8032
- value: currentBranch.id,
8033
- fullValue: currentBranch,
8034
- text: currentBranch.name
8035
- });
8066
+ if (userProfile.branchDTOList) {
8067
+ for (const branchDTO of userProfile.branchDTOList) {
8068
+ const currentBranch = branchDTO;
8069
+ if (branchDTOOptionList.findIndex(
8070
+ (branchDTOOption) => branchDTOOption.value === currentBranch.id
8071
+ ) === -1 && currentBranch.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentBranch.gradeDTO.id === parseFloat(selectedGradeId)) {
8072
+ branchDTOOptionList.push({
8073
+ value: currentBranch.id,
8074
+ fullValue: currentBranch,
8075
+ text: currentBranch.name
8076
+ });
8077
+ }
8036
8078
  }
8037
8079
  }
8038
8080
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "2.2.21",
3
+ "version": "2.2.23",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {