From 9acba904237516d28ba370927de7cd2489d5d71f Mon Sep 17 00:00:00 2001 From: Fabricio Duarte Date: Fri, 15 Mar 2024 13:00:56 -0300 Subject: [PATCH] Fix 404 when moving a VM to out of a project (#8650) --- ui/src/views/compute/AssignInstance.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/views/compute/AssignInstance.vue b/ui/src/views/compute/AssignInstance.vue index ed3efbc8338..9726dc21577 100644 --- a/ui/src/views/compute/AssignInstance.vue +++ b/ui/src/views/compute/AssignInstance.vue @@ -306,7 +306,11 @@ export default { message: this.$t('label.loadbalancerinstance') }) this.$emit('close-action') - this.parentFetchData() + if (this.$store.getters.project?.id) { + this.$router.push({ path: '/vm' }) + } else { + this.parentFetchData() + } }).catch(error => { this.$notifyError(error) }).finally(() => {