Skip to content
Snippets Groups Projects
Commit b2508fab authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: fetch relation, swap empty initialisation

parent bbffbf38
No related branches found
No related tags found
1 merge request!11Clhp map
...@@ -43,14 +43,14 @@ Future<void> initialiseState() async { ...@@ -43,14 +43,14 @@ Future<void> initialiseState() async {
// If measurements were fetched successfully, request relation // If measurements were fetched successfully, request relation
if (serverConnection) { if (serverConnection) {
relationFuture = fetchRelation(); relationFuture = fetchRelation();
} /*else { // Read last saved data } else { // Read last saved data
relationFuture = loadSavedRelation(); relationFuture = loadSavedRelation();
}*/ }
initSearchOptions(); initSearchOptions();
//selectedRelation = await relationFuture; //selectedRelation = await relationFuture;
selectedRelation = Uint8List(0); // NB update once fixed selectedRelation = await relationFuture; // NB update once fixed
selectedMarkerList = await markerListFuture; selectedMarkerList = await markerListFuture;
} }
} catch (e) { } catch (e) {
......
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