@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.
@@ -4877,7 +4877,7 @@ class MainService extends BaseApiService {
4877
4877
  const firstOrg = organizationsData[0];
4878
4878
  const currProjObj = projects.find((project) => project.id === currentProjectId);
4879
4879
  const isOrgProject = !!(currProjObj == null ? void 0 : currProjObj.owner_organization);
4880
- const userIsInProjectOrg = isOrgProject && currProjObj.owner_organization && organizationsData.find((organization) => organization.id === currProjObj.owner_organization);
4880
+ const userIsInProjectOrg = isOrgProject && organizationsData.some((organization) => organization.id === currProjObj.owner_organization);
4881
4881
  let currentOrgId = null;
4882
4882
  if (userIsInProjectOrg) {
4883
4883
  currentOrgId = currProjObj.owner_organization;