Skip to content
Snippets Groups Projects
Commit 2ec2bbc2 authored by Lionel Morin's avatar Lionel Morin
Browse files

Merge branch '164-console-error-when-deleting-a-group' into 'dev'

Resolve "console error when deleting a group"

Closes #164

See merge request !574
parents b05f7738 22ed5cc3
No related branches found
No related tags found
No related merge requests found
......@@ -251,8 +251,8 @@ GroupsUsersList.propTypes = {
export default withTracker(({ groupId, userRole }) => {
const subUsers = Meteor.subscribe('groups.users', { groupId, role: userRole });
const group = Groups.findOne(groupId);
const users = Meteor.users.find({}).fetch();
const group = Groups.findOne(groupId) || {};
const users = Meteor.users.find({}).fetch() || [];
const ready = subUsers.ready();
return {
ready,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment