16073: Display root directories with '/'
authorStephen Smith <stephen@curii.com>
Mon, 17 Oct 2022 21:17:18 +0000 (17:17 -0400)
committerStephen Smith <stephen@curii.com>
Mon, 17 Oct 2022 21:17:18 +0000 (17:17 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

src/views/process-panel/process-io-card.tsx

index b5bc08bcc6b1d2dbadc8606aba99da713fd005d3..a58f6f79fb5367fbe55312fb3686aab73564a0e1 100644 (file)
@@ -614,9 +614,8 @@ const KeepUrlPath = withStyles(styles)(({auth, res, pdh, classes}: KeepUrlProps
     const keepUrlPath = keepUrlParts.length > 1 ? keepUrlParts.slice(1).join('/') : '';
 
     const keepUrlPathNav = getKeepNavUrl(auth, res, pdh);
-    return keepUrlPath && keepUrlPathNav ?
-        <Tooltip title={"View in keep-web"}><a className={classes.keepLink} href={keepUrlPathNav} target="_blank" rel="noopener noreferrer">{keepUrlPath}</a></Tooltip> :
-        // Show No value for root collection io that lacks path part
+    return keepUrlPathNav ?
+        <Tooltip title={"View in keep-web"}><a className={classes.keepLink} href={keepUrlPathNav} target="_blank" rel="noopener noreferrer">{keepUrlPath || '/'}</a></Tooltip> :
         <EmptyValue />;
 });