@overmap-ai/core 1.0.53-add-agent-conversations.19 → 1.0.53-add-agent-conversations.21
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.
|
@@ -6727,9 +6727,14 @@ var __publicField = (obj, key, value) => {
|
|
|
6727
6727
|
store.dispatch(addOrReplaceProjects(projects));
|
|
6728
6728
|
store.dispatch(addOrReplaceWorkspaces(workspaces));
|
|
6729
6729
|
}
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6730
|
+
if (!currentProjectId) {
|
|
6731
|
+
store.dispatch(setIsFetchingInitialData(false));
|
|
6732
|
+
} else {
|
|
6733
|
+
try {
|
|
6734
|
+
await this.client.projectFiles.refreshStore();
|
|
6735
|
+
} finally {
|
|
6736
|
+
store.dispatch(setIsFetchingInitialData(false));
|
|
6737
|
+
}
|
|
6733
6738
|
void this.client.componentTypes.refreshStore();
|
|
6734
6739
|
void this.client.componentStages.refreshStore();
|
|
6735
6740
|
void this.client.components.refreshStore();
|
|
@@ -6791,16 +6796,11 @@ var __publicField = (obj, key, value) => {
|
|
|
6791
6796
|
const { store } = this.client;
|
|
6792
6797
|
const state = store.getState();
|
|
6793
6798
|
const projectId = state.projectReducer.activeProjectId;
|
|
6794
|
-
const currentUser = state.userReducer.currentUser;
|
|
6795
6799
|
if (!projectId) {
|
|
6796
6800
|
throw new Error("No active project");
|
|
6797
6801
|
}
|
|
6798
6802
|
const promise = this.fetchAll(projectId);
|
|
6799
6803
|
const result = await promise;
|
|
6800
|
-
const activeProjectAccess = result.find((projectAccess) => projectAccess.user === currentUser.id);
|
|
6801
|
-
if (!activeProjectAccess) {
|
|
6802
|
-
throw new Error("Current user does not have a project access instance");
|
|
6803
|
-
}
|
|
6804
6804
|
store.dispatch(setProjectAccesses(result));
|
|
6805
6805
|
}
|
|
6806
6806
|
}
|