[ARVADOS-WORKBENCH2] updated: 2.1.0-185-g565a4007

Git user git at public.arvados.org
Tue Feb 2 19:43:24 UTC 2021


Summary of changes:
 src/store/subprocess-panel/subprocess-panel-middleware-service.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

       via  565a40079ddbd74054cab82e8475003e1102db68 (commit)
      from  7f551720c59d8602bc4d810b243910f186179596 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 565a40079ddbd74054cab82e8475003e1102db68
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Tue Feb 2 16:41:55 2021 -0300

    Avoids 404 responses when no container request is selected.
    Refs #17319
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

diff --git a/src/store/subprocess-panel/subprocess-panel-middleware-service.ts b/src/store/subprocess-panel/subprocess-panel-middleware-service.ts
index 6fdb8de2..4383063d 100644
--- a/src/store/subprocess-panel/subprocess-panel-middleware-service.ts
+++ b/src/store/subprocess-panel/subprocess-panel-middleware-service.ts
@@ -32,11 +32,12 @@ export class SubprocessMiddlewareService extends DataExplorerMiddlewareService {
 
     async requestItems(api: MiddlewareAPI<Dispatch, RootState>) {
         const state = api.getState();
+        const parentContainerRequestUuid = state.processPanel.containerRequestUuid;
+        if (parentContainerRequestUuid === "") { return; }
         const dataExplorer = getDataExplorer(state.dataExplorer, this.getId());
 
         try {
             api.dispatch(progressIndicatorActions.START_WORKING(this.getId()));
-            const parentContainerRequestUuid = state.processPanel.containerRequestUuid;
             const parentContainerRequest = await this.services.containerRequestService.get(parentContainerRequestUuid);
             const containerRequests = await this.services.containerRequestService.list(
                 { ...getParams(dataExplorer, parentContainerRequest) });

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list