Fixed up the updating and stuff

This commit is contained in:
2019-09-08 15:56:31 -04:00
parent 0732d1c4a6
commit 6062364f4c
2 changed files with 9 additions and 12 deletions

View File

@ -112,11 +112,8 @@ export class MapComponent implements OnDestroy, OnInit {
if(e.symbol.noClick) return;
this.syncService.freeze.next(true);
this.sub = this.bottomSheet.open(EditSymbolComponent, {data: e, disableClose: true, hasBackdrop: false}).afterDismissed().pipe(finalize(() => this.sub = null)).subscribe(symbol => {
this.syncService.addCircle(symbol);
this.syncService.freeze.next(false);
this.syncService.delete(e.symbol);
if(e.item instanceof L.Circle) {
this.syncService.addCircle(symbol);
}
});
}
});