@elqnt/react 1.0.9 → 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.mjs CHANGED
@@ -4546,7 +4546,7 @@ function OrgSelector() {
4546
4546
  const [orgAccess, setOrgAccess] = useState6([]);
4547
4547
  useEffect4(() => {
4548
4548
  if (user?.orgAccess) {
4549
- const formattedOrgAccess = user.orgAccess.map((org) => ({
4549
+ const formattedOrgAccess = user.orgAccess.filter((org) => org.orgId && org.orgTitle).map((org) => ({
4550
4550
  value: org.orgId,
4551
4551
  label: org.orgTitle
4552
4552
  }));