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
|
||||
|
||||
constructor(url: string, userId: Store<number | undefined>, isDirect: boolean) {
|
||||
constructor(url: string, userId: Store<number | undefined>) {
|
||||
this.url = url
|
||||
this._userId = userId
|
||||
this.overview = UIEventSource.FromPromiseWithErr(this.fetchOverviewRaw())
|
||||
|
|
|
@ -63,12 +63,12 @@
|
|||
})
|
||||
)
|
||||
expertMode.addCallbackAndRunD((expert) => console.log("Expert mode is", expert))
|
||||
const createdBy = osmConnection.userDetails.data.name
|
||||
const uid = osmConnection.userDetails.map(
|
||||
const createdBy = osmConnection.userDetails.data?.name
|
||||
const uid = osmConnection.userDetails.mapD(
|
||||
(ud) => (directEntry.data ? null : ud?.uid),
|
||||
[directEntry]
|
||||
)
|
||||
const studio = new StudioServer(studioUrl, uid, directEntry.data)
|
||||
const studio = new StudioServer(studioUrl, uid)
|
||||
|
||||
let layersWithErr = studio.fetchOverview()
|
||||
let layerFilterTerm: string = ""
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
import SvelteUIElement from "./Base/SvelteUIElement"
|
||||
import StudioGUI from "./StudioGUI.svelte"
|
||||
|
||||
export default class StudioGui {
|
||||
public setup() {
|
||||
new StudioGUI({
|
||||
target: document.getElementById("main"),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
new StudioGui().setup()
|
||||
new StudioGUI({
|
||||
target: document.getElementById("main")
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue