Fix 404 when moving a VM to out of a project (#8650)

This commit is contained in:
Fabricio Duarte 2024-03-15 13:00:56 -03:00 committed by GitHub
parent e0731c5098
commit 9acba90423
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -306,7 +306,11 @@ export default {
message: this.$t('label.loadbalancerinstance')
})
this.$emit('close-action')
if (this.$store.getters.project?.id) {
this.$router.push({ path: '/vm' })
} else {
this.parentFetchData()
}
}).catch(error => {
this.$notifyError(error)
}).finally(() => {