@aggdirect/coolmap 2.0.1 → 2.0.2

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.
@@ -1080,7 +1080,7 @@ class AddRouteComponent {
1080
1080
  const param = {
1081
1081
  delivery_lat_lng: this.addRouteForm.value.delivery_lat_lng,
1082
1082
  pickup_lat_lng: this.addRouteForm.value.pickup_lat_lng,
1083
- unit: unit.type
1083
+ unit: unit?.type
1084
1084
  };
1085
1085
  this.utils.postdata('coolmap/calculate/routes/estimation', param).pipe(takeUntil(this.destroyer$)).subscribe((res) => {
1086
1086
  if (res && res['path']) {