From 11c8c74111b27f4bb134323ce445e5836915b152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 12 May 2021 17:21:15 +0200 Subject: [PATCH] remove log --- packages/builder/src/stores/portal/organisation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } }