From d00a412889bd66d4cbae08a5962108e0f9dd8046 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 18 May 2021 18:48:07 +0100 Subject: [PATCH] Fix logo upload and show current logo --- .../builder/src/pages/builder/portal/settings/general.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/portal/settings/general.svelte b/packages/builder/src/pages/builder/portal/settings/general.svelte index e806bad4c3..8ee249fae5 100644 --- a/packages/builder/src/pages/builder/portal/settings/general.svelte +++ b/packages/builder/src/pages/builder/portal/settings/general.svelte @@ -25,7 +25,9 @@ } let loading = false - let file + let file = $organisation.logoUrl + ? { url: $organisation.logoUrl, type: "image", name: "Logo" } + : null async function uploadLogo() { let data = new FormData() @@ -40,6 +42,7 @@ await toggleAnalytics() if (file) { await uploadLogo() + await organisation.init() } const res = await organisation.save({ company: $organisation.company,