@overmap-ai/core 1.0.27-org-switcher-and-bug-fixes.0 → 1.0.27

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.
@@ -4865,7 +4865,7 @@ var __publicField = (obj, key, value) => {
4865
4865
  const firstOrg = organizationsData[0];
4866
4866
  const currProjObj = projects.find((project) => project.id === currentProjectId);
4867
4867
  const isOrgProject = !!(currProjObj == null ? void 0 : currProjObj.owner_organization);
4868
- const userIsInProjectOrg = isOrgProject && currProjObj.owner_organization && organizationsData.find((organization) => organization.id === currProjObj.owner_organization);
4868
+ const userIsInProjectOrg = isOrgProject && organizationsData.some((organization) => organization.id === currProjObj.owner_organization);
4869
4869
  let currentOrgId = null;
4870
4870
  if (userIsInProjectOrg) {
4871
4871
  currentOrgId = currProjObj.owner_organization;