Commit 50b77964 by Adarsh K

changes

parent 4e83b7aa
......@@ -232,6 +232,9 @@ export class AddressService {
}
if (this.addressList.length > 0) {
this.addressList.forEach((address) => {
address.nearest = false;
});
if (this.nearestList.length > 0) {
this.addressList.forEach((address) => {
const index = this.nearestList.findIndex(x => x.addressId === address.addressId);
......@@ -239,10 +242,6 @@ export class AddressService {
address.nearest = true;
}
});
} else {
this.addressList.forEach((address) => {
address.nearest = false;
});
}
console.log(this.addressList);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment