Skip to content

Commit 4a11adf

Browse files
committed
Fix for node namespace for nested links
1 parent a390c26 commit 4a11adf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/query/lib/createGraph.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ export function getNodeNamespace(node) {
146146
const parts = [];
147147
let n = node;
148148
while (n) {
149-
const name = n.linker ? n.linker.linkName : n.collection._name;
149+
// links can now contain '.' (nested links)
150+
const name = n.linker ? n.linker.linkName.replace(/\./, '_') : n.collection._name;
150151
parts.push(name);
151152
// console.log('linker', node.linker ? node.linker.linkName : node.collection._name);
152153
n = n.parent;

0 commit comments

Comments
 (0)