diff --git a/webapp/src/components/DAGSvgs/DAGBoard.stories.tsx b/webapp/src/components/DAGSvgs/DAGBoard.stories.tsx index 08dda6c..97735ac 100644 --- a/webapp/src/components/DAGSvgs/DAGBoard.stories.tsx +++ b/webapp/src/components/DAGSvgs/DAGBoard.stories.tsx @@ -51,14 +51,13 @@ function* makeDummyData(pts: Array, extras: DAGElement[]): Generator = args => { - return
} Simple.args = { ...Simple.args, - elements: makeDummyData( + elements: Array.from(makeDummyData( [ [0, 0, false], [1, 0, false], @@ -94,19 +93,18 @@ Simple.args = { icon: 'color', color: 'red', } - ]) + ])) } export const Complex: ComponentStory = args => { - return
} Complex.args = { ...Complex.args, - elements: makeDummyData( + elements: Array.from(makeDummyData( [ [0, 0, false], [1, 0, false], @@ -156,7 +154,7 @@ Complex.args = { direction: '1->2' }, ] - ) + )) }