diff --git a/app/assets/javascripts/registry/components/collapsible_container.vue b/app/assets/javascripts/registry/components/collapsible_container.vue index ff69563a362..c29f98c6841 100644 --- a/app/assets/javascripts/registry/components/collapsible_container.vue +++ b/app/assets/javascripts/registry/components/collapsible_container.vue @@ -51,11 +51,11 @@ }, toggleRepo() { - if (this.isOpen === false) { + this.isOpen = !this.isOpen; + if (this.isOpen) { this.fetchList({ repo: this.repo }) .catch(() => this.showError(errorMessagesTypes.FETCH_REGISTRY)); } - this.isOpen = !this.isOpen; }, handleDeleteRepository() {