File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,17 @@ export default class Tree extends React.Component {
279
279
className = "rd3t-g"
280
280
transform = { `translate(${ translate . x } ,${ translate . y } )` }
281
281
>
282
+ { links . map ( ( linkData ) =>
283
+ < Link
284
+ key = { uuid . v4 ( ) }
285
+ orientation = { orientation }
286
+ pathFunc = { pathFunc }
287
+ linkData = { linkData }
288
+ transitionDuration = { transitionDuration }
289
+ styles = { styles . links }
290
+ />
291
+ ) }
292
+
282
293
{ nodes . map ( ( nodeData ) =>
283
294
< Node
284
295
key = { nodeData . id }
@@ -293,17 +304,6 @@ export default class Tree extends React.Component {
293
304
styles = { styles . nodes }
294
305
/>
295
306
) }
296
-
297
- { links . map ( ( linkData ) =>
298
- < Link
299
- key = { uuid . v4 ( ) }
300
- orientation = { orientation }
301
- pathFunc = { pathFunc }
302
- linkData = { linkData }
303
- transitionDuration = { transitionDuration }
304
- styles = { styles . links }
305
- />
306
- ) }
307
307
</ TransitionGroup >
308
308
</ svg >
309
309
</ div >
You can’t perform that action at this time.
0 commit comments