@overmap-ai/core 1.0.60-move-active-states.0 → 1.0.60-move-active-states.1
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.
|
@@ -1832,9 +1832,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1832
1832
|
const projectAccessReducer = projectAccessSlice.reducer;
|
|
1833
1833
|
const initialState$l = {
|
|
1834
1834
|
projects: {},
|
|
1835
|
-
activeProjectId: null
|
|
1836
|
-
recentProjectIds: [],
|
|
1837
|
-
recentSearchableQueries: []
|
|
1835
|
+
activeProjectId: null
|
|
1838
1836
|
};
|
|
1839
1837
|
const projectSlice = toolkit.createSlice({
|
|
1840
1838
|
name: "projects",
|
|
@@ -1919,21 +1917,6 @@ var __publicField = (obj, key, value) => {
|
|
|
1919
1917
|
(projects, projectId) => projects[projectId]
|
|
1920
1918
|
)
|
|
1921
1919
|
);
|
|
1922
|
-
const selectSortedProjects = toolkit.createSelector(
|
|
1923
|
-
[selectActiveProject, selectProjects],
|
|
1924
|
-
(activeProject, projects) => {
|
|
1925
|
-
return Object.values(projects).sort((projectA, projectB) => {
|
|
1926
|
-
if (activeProject) {
|
|
1927
|
-
if (activeProject.id === projectA.id) {
|
|
1928
|
-
return -1;
|
|
1929
|
-
} else if (activeProject.id === projectB.id) {
|
|
1930
|
-
return 1;
|
|
1931
|
-
}
|
|
1932
|
-
}
|
|
1933
|
-
return projectA.name.toLowerCase().localeCompare(projectB.name.toLowerCase(), void 0, { numeric: true });
|
|
1934
|
-
});
|
|
1935
|
-
}
|
|
1936
|
-
);
|
|
1937
1920
|
const projectReducer = projectSlice.reducer;
|
|
1938
1921
|
const selectProjectUsersIds = toolkit.createSelector(
|
|
1939
1922
|
[selectProjectAccessMapping],
|
|
@@ -5331,10 +5314,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5331
5314
|
if (!project) {
|
|
5332
5315
|
throw new Error("Expected project to exist");
|
|
5333
5316
|
}
|
|
5334
|
-
const activeProjectId = state.projectReducer.activeProjectId;
|
|
5335
|
-
if (activeProjectId === projectId) {
|
|
5336
|
-
this.dispatch({ type: "project/setActiveProjectId", payload: null });
|
|
5337
|
-
}
|
|
5338
5317
|
const filesToDelete = selectProjectFiles(state).filter((file) => file.project === projectId);
|
|
5339
5318
|
this.dispatch(removeProjectFilesOfProject(project.id));
|
|
5340
5319
|
const attachmentsOfProject = selectAttachmentsOfProject(project.id)(state);
|
|
@@ -5361,7 +5340,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5361
5340
|
this.dispatch(setProjectAccesses(Object.values(projectAccesses)));
|
|
5362
5341
|
this.dispatch(addOrReplaceProjectFiles(filesToDelete));
|
|
5363
5342
|
this.dispatch(setProjectAttachments(attachmentsOfProject));
|
|
5364
|
-
this.dispatch(setActiveProjectId(activeProjectId));
|
|
5365
5343
|
this.dispatch({ type: "rehydrated/setRehydrated", payload: true });
|
|
5366
5344
|
if (license) {
|
|
5367
5345
|
this.dispatch(updateLicense({ ...license, project: project.id }));
|
|
@@ -7594,7 +7572,6 @@ var __publicField = (obj, key, value) => {
|
|
|
7594
7572
|
exports2.selectSortedFormSubmissionsOfForm = selectSortedFormSubmissionsOfForm;
|
|
7595
7573
|
exports2.selectSortedOrganizationUsers = selectSortedOrganizationUsers;
|
|
7596
7574
|
exports2.selectSortedProjectUsers = selectSortedProjectUsers;
|
|
7597
|
-
exports2.selectSortedProjects = selectSortedProjects;
|
|
7598
7575
|
exports2.selectStage = selectStage;
|
|
7599
7576
|
exports2.selectStageFormIdsFromStageIds = selectStageFormIdsFromStageIds;
|
|
7600
7577
|
exports2.selectStageMapping = selectStageMapping;
|