File tree Expand file tree Collapse file tree
e2e-tests/magazine/fixtures/fs/schema Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22name : Person
3- articles : [+Article:author]
4- demos : [+Demo:maker]
5- events : [+Event:organizers, +Event:participants]
6- books : [+Book:author]
7- twin : +Person:twin
3+ attributes :
4+ articles : [+Article:author]
5+ demos : [+Demo:maker]
6+ events : [+Event:organizers, +Event:participants]
7+ books : [+Book:author]
8+ twin : +Person:twin
89---
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ function findLinkedNode(nodes, linkPath) {
3131
3232function addLinkBack ( sourceNode , targetNode , key ) {
3333 if ( sourceNode . schema ) {
34- Object . keys ( sourceNode . schema ) . forEach ( schemaKey => {
35- const schemaValue = sourceNode . schema [ schemaKey ]
34+ Object . keys ( sourceNode . schema . attributes || [ ] ) . forEach ( schemaKey => {
35+ const schemaValue = sourceNode . schema . attributes [ schemaKey ]
3636 const isSchemaValueArray = Array . isArray ( schemaValue )
3737 const re = new RegExp ( `^\\+(${ targetNode . contentType } |):${ key } $` )
3838 const match = isSchemaValueArray ?
You can’t perform that action at this time.
0 commit comments