diff --git a/packages/builder/src/stores/portal/organisation.js b/packages/builder/src/stores/portal/organisation.js index 9e639c7820..250f9c09ff 100644 --- a/packages/builder/src/stores/portal/organisation.js +++ b/packages/builder/src/stores/portal/organisation.js @@ -26,7 +26,9 @@ export function createOrganisationStore() { async function save(config) { const res = await api.post("/api/admin/configs", { type: "settings", config, _rev: get(store)._rev } ) const json = await res.json() - console.log(json) + if (json.status) { + return json + } await init() return { status: 200 } }