forked from MapComplete/MapComplete
Refactoring of image detection, fix loading wikimedia images
This commit is contained in:
parent
4da6070b28
commit
a6e8714ae0
21 changed files with 468 additions and 528 deletions
|
@ -64,7 +64,7 @@ export class UIEventSource<T> {
|
|||
|
||||
public static FromPromise<T>(promise : Promise<T>): UIEventSource<T>{
|
||||
const src = new UIEventSource<T>(undefined)
|
||||
promise.then(d => src.setData(d))
|
||||
promise?.then(d => src.setData(d))
|
||||
return src
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue