[ARVADOS-WORKBENCH2] updated: 2.1.0-186-g499628c0

Git user git at public.arvados.org
Tue Feb 2 20:42:26 UTC 2021


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

       via  499628c02528314b043f9ac649971b62f116a27e (commit)
      from  ecf96ade39e828e7456a80adee8399d5653fa1d2 (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 499628c02528314b043f9ac649971b62f116a27e
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