Skip to content

Commit

Permalink
fix: blank screen on production creation
Browse files Browse the repository at this point in the history
Signed-off-by: Loan Laux <loan@outgrow.io>
  • Loading branch information
loan-laux committed Jun 30, 2021
1 parent 6637d32 commit e143506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/modules/core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default {
permissions = _.uniq(permissions);

// if accountPermissions includes any of permissions, then we return true
return accountPermissions[permissionsGroup].some((permission) => permissions.includes(permission));
return accountPermissions[permissionsGroup] && accountPermissions[permissionsGroup].some((permission) => permissions.includes(permission));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion imports/plugins/core/core/server/Reaction/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default {
}

// if accountPermissions includes any of checkPermissions, then we return true
return accountPermissions[group].some((permission) => checkPermissions.includes(permission));
return accountPermissions[group] && accountPermissions[group].some((permission) => checkPermissions.includes(permission));
},

/**
Expand Down

0 comments on commit e143506

Please sign in to comment.