21651: Improve formatting and remove warnings
authorStephen Smith <stephen@curii.com>
Sun, 7 Apr 2024 17:02:10 +0000 (13:02 -0400)
committerStephen Smith <stephen@curii.com>
Mon, 8 Apr 2024 01:25:10 +0000 (21:25 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

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

index d9e7b87c92a7d06b43df3d1cb93de46097f3ef90..8df4a5e678edf0a3d6f2b9547d9d2a68245d701b 100644 (file)
@@ -563,7 +563,11 @@ const ProcessIOPreview = memo(
             data[index+1] && !isMainRow(data[index+1])
         );
 
-        const isMainRow = (param: ProcessIOParameter) => (param && (param.id || param.label && !param.value.secondary));
+        const isMainRow = (param: ProcessIOParameter) => (
+            param &&
+            ((param.id || param.label) &&
+            !param.value.secondary)
+        );
 
         const RenderRow = ({index, style}) => {
             const param = data[index];