Commit aeb1b6d8 by Adarsh K

Merge branch 'adarsh' into 'master'

changes See merge request !102
parents e5a9da76 50b77964
......@@ -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