From ce202520d01f6147c0732c8a7da44ea5f649d56f Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Wed, 30 Jun 2021 10:54:03 -1000 Subject: [PATCH] fix bug discovered on android due to null policy --- src/pages/settings/InitialPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/InitialPage.js b/src/pages/settings/InitialPage.js index dcd7ea64f22c..724548a171b3 100755 --- a/src/pages/settings/InitialPage.js +++ b/src/pages/settings/InitialPage.js @@ -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,