Adding some fixes for general settings menu not respecting non-deployed apps fully.

This commit is contained in:
mike12345567 2021-01-14 17:52:49 +00:00
parent 69f40d6b4e
commit a9f36d1a42
2 changed files with 8 additions and 1 deletions

View File

@ -62,6 +62,7 @@
if (urlIdx !== -1) {
existingAppUrls.splice(urlIdx, 1)
}
console.log(existingAppUrls)
nameValidation = {
name: string()
.required(nameError)

View File

@ -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
}