From d19a70061271b66b6dac769ecf2983cdf0cb4a30 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 21 Mar 2023 15:19:52 +0000 Subject: [PATCH] Linting --- .../src/pages/builder/portal/settings/branding.svelte | 2 +- .../pages/builder/portal/settings/organisation.svelte | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/settings/branding.svelte b/packages/builder/src/pages/builder/portal/settings/branding.svelte index 1406e29d4c..fd003aecc9 100644 --- a/packages/builder/src/pages/builder/portal/settings/branding.svelte +++ b/packages/builder/src/pages/builder/portal/settings/branding.svelte @@ -54,7 +54,7 @@ $: isLicenseLocked = (isCloud && !cloudPremium) || (!isCloud && !selfhostPremium) - const onConfigUpdate = config => { + const onConfigUpdate = () => { if (!mounted || updated || !init) { return } diff --git a/packages/builder/src/pages/builder/portal/settings/organisation.svelte b/packages/builder/src/pages/builder/portal/settings/organisation.svelte index 48919b5f0b..d2af329cb9 100644 --- a/packages/builder/src/pages/builder/portal/settings/organisation.svelte +++ b/packages/builder/src/pages/builder/portal/settings/organisation.svelte @@ -34,12 +34,6 @@ loading = true try { - // Upload logo if required - if ($values.logo && !$values.logo.url) { - await uploadLogo($values.logo) - await organisation.init() - } - const config = { isSSOEnforced: $values.isSSOEnforced, company: $values.company ?? "", @@ -47,11 +41,6 @@ analyticsEnabled: $values.analyticsEnabled, } - // Remove logo if required - if (!$values.logo) { - config.logoUrl = "" - } - // Update settings await organisation.save(config) } catch (error) {