Skip to content

Commit d4926db

Browse files
mktaha99mohamedkasem99
andauthored
[FIX]: Properly view geojson returned from a backend (#364)
Before this commit, the MapViewer was awaiting on loadData but that function was not returning anything. This was causing the MapViewer to always display an empty map. This commit simply adds this missing return statement so MapViewer:renderMap can work properly Co-authored-by: mohamedkasem99 <kasem.personal@gmail.com>
1 parent 6f92e59 commit d4926db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/formats/format.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class Format {
4343
this.data = await this.fetchData(connection);
4444
this.loaded = true;
4545
}
46+
return this.data;
4647
}
4748

4849
getData() {
@@ -120,4 +121,4 @@ export class UnsupportedFormat extends Format {
120121

121122
export class FormatCollection extends SupportedFormat {
122123

123-
}
124+
}

0 commit comments

Comments
 (0)