forked from MapComplete/MapComplete
Fix bug with multianswers triggering an error
This commit is contained in:
parent
25be01b8ad
commit
f4f7ae8f93
4 changed files with 9 additions and 22 deletions
|
@ -86,12 +86,8 @@ export class UIEventSource<T> {
|
|||
}
|
||||
|
||||
public ping(): void {
|
||||
const old = this.data;
|
||||
for (const callback of this._callbacks) {
|
||||
callback(this.data);
|
||||
if(this.data === undefined && old !== undefined){
|
||||
throw "Something undefined the data!"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue