[FIX] bugs when cached data is outdated

When group deleted, inability to retrieve group data was causing errors
This commit is contained in:
2021-11-25 09:39:17 +00:00
parent 1c20f74a83
commit 55db1a664d
2 changed files with 5 additions and 4 deletions

View File

@@ -174,7 +174,8 @@ export default withRouter(class SetPage extends React.Component {
.then((groupDoc) => {
newState.groups[userGroupDoc.id] = groupDoc.data().display_name;
newState.addSetToGroupLoading[userGroupDoc.id] = false;
});
})
.catch((err) => console.log(`Can't get group, possibly due to outdated cached data: ${err}`));
return true;
}));
})