From 6a418ecd51619cd0fd8c5a8bdc6bc6f7cdeff999 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 18 May 2021 13:54:04 +0100 Subject: [PATCH] Add default budibase org details --- packages/builder/src/stores/portal/organisation.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/builder/src/stores/portal/organisation.js b/packages/builder/src/stores/portal/organisation.js index 97053897f9..2856785ab9 100644 --- a/packages/builder/src/stores/portal/organisation.js +++ b/packages/builder/src/stores/portal/organisation.js @@ -1,15 +1,15 @@ import { writable, get } from "svelte/store" import api from "builderStore/api" -const FALLBACK_CONFIG = { +const DEFAULT_CONFIG = { platformUrl: "", - logoUrl: "", + logoUrl: "https://i.imgur.com/ZKyklgF.png", docsUrl: "", - company: "http://localhost:10000", + company: "Budibase", } export function createOrganisationStore() { - const store = writable({}) + const store = writable(DEFAULT_CONFIG) const { subscribe, set } = store async function init() { @@ -17,7 +17,7 @@ export function createOrganisationStore() { const json = await res.json() if (json.status === 400) { - set(FALLBACK_CONFIG) + set(DEFAULT_CONFIG) } else { set({ ...json.config, _rev: json._rev }) }