16672: Removes unused code, avoids requesting the CR twice.
[arvados-workbench2.git] / src / store / process-panel / process-panel-actions.ts
index 2e5fb6b9cf877ac787c99a3f15c14eebd323a4c3..d2921d739df23cc69a0d09587db5aca80910d9d8 100644 (file)
@@ -26,9 +26,9 @@ export type ProcessPanelAction = UnionOf<typeof processPanelActions>;
 export const toggleProcessPanelFilter = processPanelActions.TOGGLE_PROCESS_PANEL_FILTER;
 
 export const loadProcessPanel = (uuid: string) =>
-    (dispatch: Dispatch) => {
+    async (dispatch: Dispatch) => {
         dispatch<ProcessPanelAction>(processPanelActions.SET_PROCESS_PANEL_CONTAINER_REQUEST_UUID(uuid));
-        dispatch<any>(loadProcess(uuid));
+        await dispatch<any>(loadProcess(uuid));
         dispatch(initProcessPanelFilters);
         dispatch<any>(initProcessLogsPanel(uuid));
         dispatch<any>(loadSubprocessPanel());