From a9f36d1a427d75fa29d5d035c74dd7254b3cf2ba Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 14 Jan 2021 17:52:49 +0000 Subject: [PATCH] Adding some fixes for general settings menu not respecting non-deployed apps fully. --- .../builder/src/components/settings/tabs/General.svelte | 1 + packages/server/src/utilities/builder/hosting.js | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/components/settings/tabs/General.svelte b/packages/builder/src/components/settings/tabs/General.svelte index deb1602957..fd2fb54e31 100644 --- a/packages/builder/src/components/settings/tabs/General.svelte +++ b/packages/builder/src/components/settings/tabs/General.svelte @@ -62,6 +62,7 @@ if (urlIdx !== -1) { existingAppUrls.splice(urlIdx, 1) } + console.log(existingAppUrls) nameValidation = { name: string() .required(nameError) diff --git a/packages/server/src/utilities/builder/hosting.js b/packages/server/src/utilities/builder/hosting.js index 814796ff7e..3c02410afd 100644 --- a/packages/server/src/utilities/builder/hosting.js +++ b/packages/server/src/utilities/builder/hosting.js @@ -100,5 +100,11 @@ exports.getDeployedApps = async () => { "x-budibase-auth": hostingKey, }, }) - return response.json() + const json = await response.json() + for (let value of Object.values(json)) { + if (value.url) { + value.url = value.url.toLowerCase() + } + } + return json }