forked from MapComplete/MapComplete
Small bugfixes on saving elements, fix #83
This commit is contained in:
parent
072e466607
commit
963949f86a
5 changed files with 20 additions and 12 deletions
|
@ -21,7 +21,7 @@ export class ElementStorage {
|
|||
return eventSource;
|
||||
}
|
||||
|
||||
addOrGetElement(element: any) {
|
||||
addOrGetElement(element: any) : UIEventSource<any>{
|
||||
const elementId = element.properties.id;
|
||||
if (elementId in this._elements) {
|
||||
const es = this._elements[elementId];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue