forked from MapComplete/MapComplete
Chore: Remove unused variables
This commit is contained in:
parent
1a415f4815
commit
e68b31e267
42 changed files with 48 additions and 106 deletions
|
|
@ -119,7 +119,7 @@ export abstract class EditJsonState<T> {
|
|||
this.setValueAt(path, v)
|
||||
})
|
||||
this._stores.set(key, store)
|
||||
this.configuration.addCallbackD((config) => {
|
||||
this.configuration.addCallbackD(() => {
|
||||
store.setData(this.getCurrentValueFor(path))
|
||||
})
|
||||
return store
|
||||
|
|
|
|||
|
|
@ -6,13 +6,11 @@
|
|||
|
||||
export let state: EditLayerState
|
||||
export let path: (string | number)[] = []
|
||||
export let schema: ConfigMeta
|
||||
|
||||
let value = new UIEventSource<string>({})
|
||||
let value = new UIEventSource<Record<string,string>>({})
|
||||
console.log("Registering translation to path", path)
|
||||
state.register(
|
||||
path,
|
||||
value.mapD((v) => JSON.parse(value.data))
|
||||
value.mapD(() => JSON.parse(value.data))
|
||||
)
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ export default class StudioServer {
|
|||
category: "layers" | "themes"
|
||||
}[]
|
||||
> {
|
||||
const uid = this._userId.data
|
||||
const { allFiles } = <{ allFiles: string[] }>(
|
||||
await Utils.downloadJson(this.url + "/overview")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue