Commit 9c7807b3 authored by Filipa Lacerda's avatar Filipa Lacerda

Improves toggle method

parent 84c4834f
...@@ -51,11 +51,11 @@ ...@@ -51,11 +51,11 @@
}, },
toggleRepo() { toggleRepo() {
if (this.isOpen === false) { this.isOpen = !this.isOpen;
if (this.isOpen) {
this.fetchList({ repo: this.repo }) this.fetchList({ repo: this.repo })
.catch(() => this.showError(errorMessagesTypes.FETCH_REGISTRY)); .catch(() => this.showError(errorMessagesTypes.FETCH_REGISTRY));
} }
this.isOpen = !this.isOpen;
}, },
handleDeleteRepository() { handleDeleteRepository() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment