mirror of
https://github.com/vale981/grapher
synced 2025-03-04 17:11:38 -05:00
add workaround
This commit is contained in:
parent
e7b47911b6
commit
5a7254a181
1 changed files with 6 additions and 1 deletions
|
@ -30,6 +30,11 @@ export function createNodes(root) {
|
|||
return;
|
||||
}
|
||||
|
||||
// workaround
|
||||
if(root.collection.default) {
|
||||
root.collection = root.collection.default;
|
||||
}
|
||||
|
||||
// checking if it is a link.
|
||||
let linker = root.collection.getLinker(fieldName);
|
||||
|
||||
|
@ -78,4 +83,4 @@ export default function (collection, body) {
|
|||
createNodes(root);
|
||||
|
||||
return root;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue