Skip to content

Commit

Permalink
Merge pull request #377 from outgrow/outgrow-fix-blank-screen-product…
Browse files Browse the repository at this point in the history
…-creation

fix: blank screen on production creation
  • Loading branch information
Akarshit authored Jul 11, 2021
2 parents 6637d32 + e143506 commit bad1ef0
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 bad1ef0

Please sign in to comment.