Chore: Remove unused variables

This commit is contained in:
Pieter Vander Vennet 2024-01-24 23:45:20 +01:00
parent 1a415f4815
commit e68b31e267
42 changed files with 48 additions and 106 deletions

View file

@ -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

View file

@ -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>

View file

@ -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")
)