add workaround

This commit is contained in:
macsj200 2017-05-04 13:12:49 -07:00
parent e7b47911b6
commit 5a7254a181

View file

@ -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;
};
};