Small bugfixes on saving elements, fix #83

This commit is contained in:
Pieter Vander Vennet 2020-08-06 21:06:50 +02:00
parent 072e466607
commit 963949f86a
5 changed files with 20 additions and 12 deletions

View file

@ -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];