Web: Client: Fix bug with infinite loading after deleting group

This commit is contained in:
Aleksandr Lushkin 2024-02-29 19:58:29 +01:00
parent e8b14c058d
commit a3a50f67c6
2 changed files with 3 additions and 3 deletions

View File

@ -357,7 +357,7 @@ class GroupsStore {
.then(() => {
toastr.success(t("Group was deleted successfully"));
this.setSelection([]);
this.getGroups();
this.getGroups(this.groupsFilter, true);
})
.catch((err) => {
toastr.error(err.message);

View File

@ -368,7 +368,7 @@ class PeopleStore {
selection,
} = this.selectionStore;
const { selection: groupsSelection } = this.groupsStore;
const { selection: groupsSelection, groupsFilter } = this.groupsStore;
const { setSendInviteDialogVisible } = this.dialogStore;
const { toggleDeleteProfileEverDialog } = this.contextOptionsStore;
@ -388,7 +388,7 @@ class PeopleStore {
.then(() => {
toastr.success(t("Groups were deleted successfully"));
this.groupsStore.setSelection([]);
this.groupsStore.getGroups();
this.groupsStore.getGroups(groupsFilter, true);
})
.catch((err) => {
toastr.error(err.message);