This commit is contained in:
Keviin Åberg Kultalahti 2021-05-05 18:41:16 +02:00
parent 98b1bbc655
commit 677106a58b
2 changed files with 30 additions and 30 deletions

View File

@ -11,10 +11,10 @@ export function createOrganisationStore() {
set(json)
} catch (error) {
set({
platformUrl: '',
logoUrl: '',
docsUrl: '',
company: ''
platformUrl: "",
logoUrl: "",
docsUrl: "",
company: "",
})
}
}
@ -23,15 +23,15 @@ export function createOrganisationStore() {
subscribe,
save: async config => {
try {
await api.post('/api/admin/configs', { type: 'settings', config})
await api.post("/api/admin/configs", { type: "settings", config })
await init()
return { status: 200 }
} catch (error) {
return { error }
}
},
init
}
init,
}
}
export const organisation = createOrganisationStore()