forked from MapComplete/MapComplete
Fix: studio works again
This commit is contained in:
parent
6260bc2897
commit
014282db94
3 changed files with 7 additions and 14 deletions
|
@ -20,7 +20,7 @@ export default class StudioServer {
|
||||||
>
|
>
|
||||||
public isDirect: boolean
|
public isDirect: boolean
|
||||||
|
|
||||||
constructor(url: string, userId: Store<number | undefined>, isDirect: boolean) {
|
constructor(url: string, userId: Store<number | undefined>) {
|
||||||
this.url = url
|
this.url = url
|
||||||
this._userId = userId
|
this._userId = userId
|
||||||
this.overview = UIEventSource.FromPromiseWithErr(this.fetchOverviewRaw())
|
this.overview = UIEventSource.FromPromiseWithErr(this.fetchOverviewRaw())
|
||||||
|
|
|
@ -63,12 +63,12 @@
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
expertMode.addCallbackAndRunD((expert) => console.log("Expert mode is", expert))
|
expertMode.addCallbackAndRunD((expert) => console.log("Expert mode is", expert))
|
||||||
const createdBy = osmConnection.userDetails.data.name
|
const createdBy = osmConnection.userDetails.data?.name
|
||||||
const uid = osmConnection.userDetails.map(
|
const uid = osmConnection.userDetails.mapD(
|
||||||
(ud) => (directEntry.data ? null : ud?.uid),
|
(ud) => (directEntry.data ? null : ud?.uid),
|
||||||
[directEntry]
|
[directEntry]
|
||||||
)
|
)
|
||||||
const studio = new StudioServer(studioUrl, uid, directEntry.data)
|
const studio = new StudioServer(studioUrl, uid)
|
||||||
|
|
||||||
let layersWithErr = studio.fetchOverview()
|
let layersWithErr = studio.fetchOverview()
|
||||||
let layerFilterTerm: string = ""
|
let layerFilterTerm: string = ""
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
import SvelteUIElement from "./Base/SvelteUIElement"
|
|
||||||
import StudioGUI from "./StudioGUI.svelte"
|
import StudioGUI from "./StudioGUI.svelte"
|
||||||
|
|
||||||
export default class StudioGui {
|
new StudioGUI({
|
||||||
public setup() {
|
target: document.getElementById("main")
|
||||||
new StudioGUI({
|
})
|
||||||
target: document.getElementById("main"),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
new StudioGui().setup()
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue