From 64d08deef1ce1fc2e0b8fdd11e4a91d5a6c4057d Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Thu, 19 May 2022 14:05:34 +0200 Subject: [PATCH] Fetch groups only from authorized request --- resources/js/views/Accounts.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/js/views/Accounts.vue b/resources/js/views/Accounts.vue index abccde1a..daf0455e 100644 --- a/resources/js/views/Accounts.vue +++ b/resources/js/views/Accounts.vue @@ -307,7 +307,6 @@ // we fetch fresh data whatever. The user will be notified to reload the page if there are any data changes this.fetchAccounts() - this.fetchGroups() // stop OTP generation on modal close this.$on('modalClose', function() { @@ -363,6 +362,7 @@ else { this.accounts = accounts this.$storage.set('accounts', this.accounts) + this.fetchGroups() } }) }, @@ -432,7 +432,6 @@ // we fetch the accounts again to prevent the js collection being // desynchronize from the backend php collection this.fetchAccounts(true) - this.fetchGroups() this.showGroupSelector = false },