@elqnt/react 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4621,7 +4621,7 @@ function OrgSelector() {
4621
4621
  const [orgAccess, setOrgAccess] = (0, import_react7.useState)([]);
4622
4622
  (0, import_react7.useEffect)(() => {
4623
4623
  if (user?.orgAccess) {
4624
- const formattedOrgAccess = user.orgAccess.map((org) => ({
4624
+ const formattedOrgAccess = user.orgAccess.filter((org) => org.orgId && org.orgTitle).map((org) => ({
4625
4625
  value: org.orgId,
4626
4626
  label: org.orgTitle
4627
4627
  }));