Skip to content
Snippets Groups Projects
Commit 3ac2dc9e authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: race condition issue for FF

parent 467519cc
No related branches found
No related tags found
1 merge request!31Recette
......@@ -30,8 +30,9 @@ export class HomeComponent implements OnInit {
ngOnInit(): void {
if (navigator.geolocation) {
this.getLocation();
} else {
this.getStructures(null);
}
this.getStructures(null);
}
public getStructures(filters: Filter[]): void {
......@@ -125,6 +126,7 @@ export class HomeComponent implements OnInit {
const longitude = position.coords.longitude;
const latitude = position.coords.latitude;
this.getAddress(longitude, latitude);
this.getStructures(null);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment