19900: Catch exceptions loading process container request
[arvados.git] / src / store / workbench / workbench-actions.ts
index 0ad3fb8e55e496e7b3e9274ee1fd47935842ae73..761ffb75e80a2a00a9b861d93fdd80352047fe43 100644 (file)
@@ -579,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 =