diff --git a/app/assets/javascripts/issues/show/components/edit_actions.vue b/app/assets/javascripts/issues/show/components/edit_actions.vue index 4daf6f2b61b..9b31014c1ba 100644 --- a/app/assets/javascripts/issues/show/components/edit_actions.vue +++ b/app/assets/javascripts/issues/show/components/edit_actions.vue @@ -77,7 +77,7 @@ export default { return this.formState.title.trim() !== ''; }, shouldShowDeleteButton() { - return this.canDestroy && this.showDeleteButton; + return this.canDestroy && this.showDeleteButton && this.typeToShow; }, typeToShow() { const { issueState, issuableType } = this; diff --git a/app/assets/javascripts/packages_and_registries/infrastructure_registry/list/components/infrastructure_search.vue b/app/assets/javascripts/packages_and_registries/infrastructure_registry/list/components/infrastructure_search.vue index d3c38da1531..2046b717362 100644 --- a/app/assets/javascripts/packages_and_registries/infrastructure_registry/list/components/infrastructure_search.vue +++ b/app/assets/javascripts/packages_and_registries/infrastructure_registry/list/components/infrastructure_search.vue @@ -31,7 +31,7 @@ export default {