@csmart/ngc-smart-victim 1.14.6 → 1.14.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -961,7 +961,7 @@ class SmartVictimDetailComponent {
961
961
  this.victimForm.reset();
962
962
  }
963
963
  ngOnInit() {
964
- console.log('on init 11/7/23');
964
+ console.log('on init 11/8/23');
965
965
  console.log('show offenderId');
966
966
  console.log(this.offenderId);
967
967
  console.log('show staffId');
@@ -1564,6 +1564,10 @@ class SmartVictimDetailComponent {
1564
1564
  this.victimDetail.genderCode = this.victimForm.value.genderCode;
1565
1565
  this.victimDetail.minorFlag = this.victimForm.value.minorFlag;
1566
1566
  this.victimDetail.homePhone = this.victimForm.value.homePhone;
1567
+ console.log('this.victimForm.value.homePhone');
1568
+ console.log(this.victimForm.value.homePhone);
1569
+ console.log('this.victimDetail.homePhone');
1570
+ console.log(this.victimDetail.homePhone);
1567
1571
  this.victimDetail.workPhone = this.victimForm.value.workPhone;
1568
1572
  this.victimDetail.cellPhone = this.victimForm.value.cellPhone;
1569
1573
  this.victimDetail.email = this.victimForm.value.email;
@@ -1910,16 +1914,16 @@ class NgcSmartVictimComponent {
1910
1914
  .subscribe((data) => {
1911
1915
  this.victimListDataSource.data = data;
1912
1916
  this.victims = data;
1913
- // data.forEach((d) => {
1914
- // if (d.homePhone == null || d.homePhone == "") {
1915
- // if (d.cellPhone != null && d.cellPhone != ""){
1916
- // d.homePhone = d.cellPhone;
1917
- // }
1918
- // else{
1919
- // d.homePhone = d.workPhone;
1920
- // }
1921
- // }
1922
- // });
1917
+ data.forEach((d) => {
1918
+ if (d.homePhone == null || d.homePhone == "") {
1919
+ if (d.cellPhone != null && d.cellPhone != "") {
1920
+ d.homePhone = d.cellPhone;
1921
+ }
1922
+ else {
1923
+ d.homePhone = d.workPhone;
1924
+ }
1925
+ }
1926
+ });
1923
1927
  console.log("victim data at line 179");
1924
1928
  console.log(this.victims);
1925
1929
  console.log("showListFlag");