Skip to content

Commit

Permalink
fix bug discovered on android due to null policy
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Jun 30, 2021
1 parent 181625e commit ce20252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/settings/InitialPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const InitialSettingsPage = ({

// Add free policies (workspaces) to the list of menu items
const menuItems = _.chain(policies)
.filter(policy => policy.type === CONST.POLICY.TYPE.FREE && policy.role === CONST.POLICY.ROLE.ADMIN)
.filter(policy => policy && policy.type === CONST.POLICY.TYPE.FREE && policy.role === CONST.POLICY.ROLE.ADMIN)
.map(policy => ({
title: policy.name,
icon: Building,
Expand Down

0 comments on commit ce20252

Please sign in to comment.