Skip to content

Commit

Permalink
#106 Fix loading error on groups index
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Dec 28, 2020
1 parent e640ba9 commit 2acf09a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/groups/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ const GroupList = ({ query, initAlerts, statefulSession }) => {
};

if (query.deletedGroupId && groups.some((g) => g.id === query.deletedGroupId)) {
setGroups(groups.filter((g) => g.id !== query.deletedGroupId))
.then(setPageLoading(false))
.catch((err) => setAlerts([...alerts, { text: err.message, variant: 'danger' }]));
setGroups(groups.filter((g) => g.id !== query.deletedGroupId));
setPageLoading(false);
}

React.useEffect(() => {
Expand Down

0 comments on commit 2acf09a

Please sign in to comment.