1
0
Fork 0
mirror of synced 2024-09-29 16:51:33 +13:00

Fixing an issue with updating not recognising apps not deployed yet.

This commit is contained in:
mike12345567 2021-01-14 17:46:59 +00:00
parent 09bf6833ed
commit 74d60cb622

View file

@ -54,8 +54,14 @@
await hostingStore.actions.fetchDeployedApps()
const existingAppNames = get(hostingStore).deployedAppNames
const existingAppUrls = get(hostingStore).deployedAppUrls
existingAppNames.splice(existingAppNames.indexOf(get(store).name), 1)
existingAppUrls.splice(existingAppUrls.indexOf(get(store).url), 1)
const nameIdx = existingAppNames.indexOf(get(store).name)
const urlIdx = existingAppUrls.indexOf(get(store).url)
if (nameIdx !== -1) {
existingAppNames.splice(nameIdx, 1)
}
if (urlIdx !== -1) {
existingAppUrls.splice(urlIdx, 1)
}
nameValidation = {
name: string()
.required(nameError)