X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3d996002ab1f259b31d07858d9c5d0a780600a00..c4621fbe523cc60770f4176141b83083f1f3802a:/src/views/process-panel/subprocesses-card.tsx?ds=inline

diff --git a/src/views/process-panel/subprocesses-card.tsx b/src/views/process-panel/subprocesses-card.tsx
index ac60c9f6..0ff62851 100644
--- a/src/views/process-panel/subprocesses-card.tsx
+++ b/src/views/process-panel/subprocesses-card.tsx
@@ -7,6 +7,7 @@ import { ArvadosTheme } from '~/common/custom-theme';
 import { StyleRulesCallback, withStyles, WithStyles, Card, CardHeader, CardContent, Grid, Switch } from '@material-ui/core';
 import { SubprocessFilter } from '~/components/subprocess-filter/subprocess-filter';
 import { SubprocessFilterDataProps } from '~/components/subprocess-filter/subprocess-filter';
+import { Process } from '~/store/processes/process';
 
 type CssRules = 'root';
 
@@ -17,7 +18,7 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
 });
 
 interface SubprocessesDataProps {
-    subprocesses: number;
+    subprocesses: Array<Process>;
     filters: SubprocessFilterDataProps[];
     onToggle: (filter: SubprocessFilterDataProps) => void;
 }
@@ -31,7 +32,7 @@ export const SubprocessesCard = withStyles(styles)(
             <CardContent>
                 <Grid container direction="column" spacing={16}>
                     <Grid item xs={12} container spacing={16}>
-                        <SubprocessFilter label='Subprocesses' value={subprocesses} />     
+                        <SubprocessFilter label='Subprocesses' value={subprocesses.length} />     
                     </Grid>
                     <Grid item xs={12} container spacing={16}>
                         {
