Web: Client: Fix bug with infinite loading after deleting group
This commit is contained in:
parent
e8b14c058d
commit
a3a50f67c6
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user