@aggdirect/coolmap 2.0.2 → 2.0.3

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.
@@ -1047,8 +1047,8 @@ class AddRouteComponent {
1047
1047
  }
1048
1048
  });
1049
1049
  }
1050
- async fetchUnitsList() {
1051
- await this.utils.getData('coolmap/unit/list/view').pipe(takeUntil(this.destroyer$)).subscribe((res) => {
1050
+ fetchUnitsList() {
1051
+ this.utils.getData('coolmap/unit/list/view').pipe(takeUntil(this.destroyer$)).subscribe((res) => {
1052
1052
  if (res) {
1053
1053
  this.unitsList = res.data;
1054
1054
  }
@@ -1077,6 +1077,7 @@ class AddRouteComponent {
1077
1077
  checkAndFetchRouteInformation(isinitial) {
1078
1078
  if (this.addRouteForm.value?.delivery_lat_lng?.length > 0 && this.addRouteForm.value?.pickup_lat_lng?.length > 0 && this.addRouteForm.value.unit_id) {
1079
1079
  let unit = this.unitsList.find((x) => x.id === this.addRouteForm.value.unit_id);
1080
+ console.log(this.unitsList, unit);
1080
1081
  const param = {
1081
1082
  delivery_lat_lng: this.addRouteForm.value.delivery_lat_lng,
1082
1083
  pickup_lat_lng: this.addRouteForm.value.pickup_lat_lng,