Skip to content

Commit

Permalink
fix(image): addImage seems to need to wait for mapLoaded now
Browse files Browse the repository at this point in the history
  • Loading branch information
Wykks committed Nov 20, 2017
1 parent 0c19c5f commit cd51115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/lib/image/image.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ImageComponent implements OnInit, OnDestroy, OnChanges {
) { }

ngOnInit() {
this.MapService.mapCreated$.subscribe(() => {
this.MapService.mapLoaded$.subscribe(() => {
if (this.data) {
this.MapService.addImage(
this.id,
Expand Down

0 comments on commit cd51115

Please sign in to comment.