X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b114600c55e53b4c16f091edbabdb2ebeba0f032..b6ade0ccdd981765e52b6bcd66a52cc228525fd0:/src/store/subprocess-panel/subprocess-panel-middleware-service.ts diff --git a/src/store/subprocess-panel/subprocess-panel-middleware-service.ts b/src/store/subprocess-panel/subprocess-panel-middleware-service.ts index 0f306ac0..c6223627 100644 --- a/src/store/subprocess-panel/subprocess-panel-middleware-service.ts +++ b/src/store/subprocess-panel/subprocess-panel-middleware-service.ts @@ -39,17 +39,18 @@ export class SubprocessMiddlewareService extends DataExplorerMiddlewareService { try { api.dispatch(progressIndicatorActions.START_WORKING(this.getId())); const parentContainerRequest = await this.services.containerRequestService.get(parentContainerRequestUuid); - const containerRequests = await this.services.containerRequestService.list( - { - ...getParams(dataExplorer, parentContainerRequest) , - select: containerRequestFieldsNoMounts - }); - + if (parentContainerRequest.containerUuid) { + const containerRequests = await this.services.containerRequestService.list( + { + ...getParams(dataExplorer, parentContainerRequest) , + select: containerRequestFieldsNoMounts + }); + api.dispatch(updateResources(containerRequests.items)); + await api.dispatch(loadMissingProcessesInformation(containerRequests.items)); + // Populate the actual user view + api.dispatch(setItems(containerRequests)); + } api.dispatch(progressIndicatorActions.PERSIST_STOP_WORKING(this.getId())); - api.dispatch(updateResources(containerRequests.items)); - await api.dispatch(loadMissingProcessesInformation(containerRequests.items)); - // Populate the actual user view - api.dispatch(setItems(containerRequests)); } catch { api.dispatch(progressIndicatorActions.PERSIST_STOP_WORKING(this.getId())); api.dispatch(couldNotFetchSubprocesses());