16073: Fix erroneously showing no parameters message
authorStephen Smith <stephen@curii.com>
Mon, 17 Oct 2022 21:03:08 +0000 (17:03 -0400)
committerStephen Smith <stephen@curii.com>
Mon, 17 Oct 2022 21:03:08 +0000 (17:03 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

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

index 828461281a4aea48206ca7d7a9c6e4f8c0d3c4cc..0d148d7251ffe83e01bebbea733a4a66ec0d8017 100644 (file)
@@ -287,7 +287,7 @@ export const ProcessIOCard = withStyles(styles)(connect(null, mapDispatchToProps
                                         <ProcessIORaw data={raw} />
                                     </div>}
                             </>}
-                        {!loading && raw && Object.keys(raw).length === 0 && <Grid container item alignItems='center' justify='center'>
+                        {!loading && !hasRaw && !hasParams && <Grid container item alignItems='center' justify='center'>
                             <DefaultView messages={["No parameters found"]} />
                         </Grid>}
                     </>) :