try {
api.dispatch(progressIndicatorActions.START_WORKING(this.getId()));
const response = await this.services.groupsService.contents(projectUuid, getParams(dataExplorer, !!isProjectTrashed));
- api.dispatch(progressIndicatorActions.PERSIST_STOP_WORKING(this.getId()));
const resourceUuids = response.items.map(item => item.uuid);
api.dispatch<any>(updateFavorites(resourceUuids));
api.dispatch<any>(updatePublicFavorites(resourceUuids));
// Load another users home projects
dispatch(finishLoadingProject(uuid));
} else if (userUuid !== uuid) {
+ await dispatch(finishLoadingProject(uuid));
const match = await loadGroupContentsResource({ uuid, userUuid, services });
match({
- OWNED: async project => {
- await dispatch(finishLoadingProject(project));
+ OWNED: async () => {
await dispatch(activateSidePanelTreeItem(uuid));
dispatch<any>(setSidePanelBreadcrumbs(uuid));
},
- SHARED: async project => {
- await dispatch(finishLoadingProject(project));
+ SHARED: async () => {
await dispatch(activateSidePanelTreeItem(uuid));
dispatch<any>(setSharedWithMeBreadcrumbs(uuid));
},
- TRASHED: async project => {
- await dispatch(finishLoadingProject(project));
+ TRASHED: async () => {
await dispatch(activateSidePanelTreeItem(SidePanelTreeCategory.TRASH));
dispatch<any>(setTrashBreadcrumbs(uuid));
dispatch(setIsProjectPanelTrashed(true));