@overmap-ai/core 1.0.53-add-agent-conversations.20 → 1.0.53-add-agent-conversations.22

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.
@@ -6806,16 +6806,11 @@ class ProjectAccessService extends BaseApiService {
6806
6806
  const { store } = this.client;
6807
6807
  const state = store.getState();
6808
6808
  const projectId = state.projectReducer.activeProjectId;
6809
- const currentUser = state.userReducer.currentUser;
6810
6809
  if (!projectId) {
6811
6810
  throw new Error("No active project");
6812
6811
  }
6813
6812
  const promise = this.fetchAll(projectId);
6814
6813
  const result = await promise;
6815
- const activeProjectAccess = result.find((projectAccess) => projectAccess.user === currentUser.id);
6816
- if (!activeProjectAccess) {
6817
- throw new Error("Current user does not have a project access instance");
6818
- }
6819
6814
  store.dispatch(setProjectAccesses(result));
6820
6815
  }
6821
6816
  }