Fixing an issue with updating not recognising apps not deployed yet.
This commit is contained in:
parent
d820e3287e
commit
69f40d6b4e
|
@ -54,8 +54,14 @@
|
||||||
await hostingStore.actions.fetchDeployedApps()
|
await hostingStore.actions.fetchDeployedApps()
|
||||||
const existingAppNames = get(hostingStore).deployedAppNames
|
const existingAppNames = get(hostingStore).deployedAppNames
|
||||||
const existingAppUrls = get(hostingStore).deployedAppUrls
|
const existingAppUrls = get(hostingStore).deployedAppUrls
|
||||||
existingAppNames.splice(existingAppNames.indexOf(get(store).name), 1)
|
const nameIdx = existingAppNames.indexOf(get(store).name)
|
||||||
existingAppUrls.splice(existingAppUrls.indexOf(get(store).url), 1)
|
const urlIdx = existingAppUrls.indexOf(get(store).url)
|
||||||
|
if (nameIdx !== -1) {
|
||||||
|
existingAppNames.splice(nameIdx, 1)
|
||||||
|
}
|
||||||
|
if (urlIdx !== -1) {
|
||||||
|
existingAppUrls.splice(urlIdx, 1)
|
||||||
|
}
|
||||||
nameValidation = {
|
nameValidation = {
|
||||||
name: string()
|
name: string()
|
||||||
.required(nameError)
|
.required(nameError)
|
||||||
|
|
Loading…
Reference in New Issue