19900: Catch exceptions loading process container request
[arvados.git] / src / store / workbench / workbench-actions.ts
index e1fcae4b8db6ce930f6c2fbcff42e303f746010f..761ffb75e80a2a00a9b861d93fdd80352047fe43 100644 (file)
@@ -170,7 +170,6 @@ export const loadWorkbench =
     const { auth, router } = getState();
     const { user } = auth;
     if (user) {
-      //   console.log('PREJECTPANELCOLUMNS', projectPanelColumns);
       dispatch(
         projectPanelActions.SET_COLUMNS({ columns: projectPanelColumns })
       );
@@ -580,11 +579,13 @@ export const loadProcess = (uuid: string) =>
   handleFirstTimeLoad(async (dispatch: Dispatch, getState: () => RootState) => {
     dispatch<any>(loadProcessPanel(uuid));
     const process = await dispatch<any>(processesActions.loadProcess(uuid));
-    await dispatch<any>(
-      activateSidePanelTreeItem(process.containerRequest.ownerUuid)
-    );
-    dispatch<any>(setProcessBreadcrumbs(uuid));
-    dispatch<any>(loadDetailsPanel(uuid));
+    if (process) {
+      await dispatch<any>(
+        activateSidePanelTreeItem(process.containerRequest.ownerUuid)
+      );
+      dispatch<any>(setProcessBreadcrumbs(uuid));
+      dispatch<any>(loadDetailsPanel(uuid));
+    }
   });
 
 export const updateProcess =