Skip to content

Commit 065847e

Browse files
author
Hoang Nguyen
authored
UI: Fixes asynchronous when destroying wrong item VM (apache#5884)
* fix asynchronous error when deleting VMs one by one * fixes error open modal
1 parent 28f6067 commit 065847e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ui/src/views/AutogenView.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,10 @@ export default {
913913
}
914914
}
915915
if (this.items.length > 0) {
916-
this.resource = this.items[0]
917-
this.$emit('change-resource', this.resource)
916+
if (!this.showAction) {
917+
this.resource = this.items[0]
918+
this.$emit('change-resource', this.resource)
919+
}
918920
} else {
919921
if (this.dataView) {
920922
this.$router.push({ path: '/exception/404' })

0 commit comments

Comments
 (0)