File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,20 @@ import { OutlineNode } from "../ui/outline.tsx";
3
3
4
4
export default {
5
5
view ( { attrs : { workbench, path} } ) {
6
+ let node = path . node ;
7
+ if ( path . node . refTo ) {
8
+ node = path . node . refTo ;
9
+ }
6
10
return (
7
11
< div class = "list-view" >
8
12
< div class = "fields" >
9
- { ( path . node . getLinked ( "Fields" ) . length > 0 ) &&
10
- path . node . getLinked ( "Fields" ) . map ( n => < OutlineNode key = { n . id } workbench = { workbench } path = { path . append ( n ) } /> )
13
+ { ( node . getLinked ( "Fields" ) . length > 0 ) &&
14
+ node . getLinked ( "Fields" ) . map ( n => < OutlineNode key = { n . id } workbench = { workbench } path = { path . append ( n ) } /> )
11
15
}
12
16
</ div >
13
17
< div class = "children" >
14
- { ( path . node . childCount > 0 )
15
- ?path . node . children . map ( n => < OutlineNode key = { n . id } workbench = { workbench } path = { path . append ( n ) } /> )
18
+ { ( node . childCount > 0 )
19
+ ?node . children . map ( n => < OutlineNode key = { n . id } workbench = { workbench } path = { path . append ( n ) } /> )
16
20
:< NewNode workbench = { workbench } path = { path } />
17
21
}
18
22
</ div >
You can’t perform that action at this time.
0 commit comments