diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index ed2d5a3f5ee..6454868b14e 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -913,8 +913,10 @@ export default { } } if (this.items.length > 0) { - this.resource = this.items[0] - this.$emit('change-resource', this.resource) + if (!this.showAction) { + this.resource = this.items[0] + this.$emit('change-resource', this.resource) + } } else { if (this.dataView) { this.$router.push({ path: '/exception/404' })