mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-27 02:52:14 +01:00
fix(fe): twice loading templates
This commit is contained in:
parent
001ddd3ae3
commit
2a57122c4c
@ -290,7 +290,11 @@ export default {
|
||||
},
|
||||
|
||||
async onViewTabSelected(tabIndex) {
|
||||
this.viewId = tabIndex >= this.views.length ? null : this.views[tabIndex].id;
|
||||
const newViewId = tabIndex >= this.views.length ? null : this.views[tabIndex].id;
|
||||
if (this.viewId === newViewId) {
|
||||
return;
|
||||
}
|
||||
this.viewId = newViewId;
|
||||
this.viewItemsLoading = true;
|
||||
try {
|
||||
await this.loadItems();
|
||||
|
Loading…
Reference in New Issue
Block a user