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) set(json)
} catch (error) { } catch (error) {
set({ set({
platformUrl: '', platformUrl: "",
logoUrl: '', logoUrl: "",
docsUrl: '', docsUrl: "",
company: '' company: "",
}) })
} }
} }
@ -23,14 +23,14 @@ export function createOrganisationStore() {
subscribe, subscribe,
save: async config => { save: async config => {
try { try {
await api.post('/api/admin/configs', { type: 'settings', config}) await api.post("/api/admin/configs", { type: "settings", config })
await init() await init()
return { status: 200 } return { status: 200 }
} catch (error) { } catch (error) {
return { error } return { error }
} }
}, },
init init,
} }
} }