Skip to content

Commit ca2dbc3

Browse files
committed
change name display on node
1 parent e55fb40 commit ca2dbc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/containers/Inspect.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const Inspect = () => {
101101
})
102102
.nodeThreeObject((node) => {
103103
const nodeEl = document.createElement('div');
104-
nodeEl.textContent = node.path;
104+
nodeEl.textContent = node.path.split('/').pop().replace(/:.*/, '');
105105
nodeEl.style.color = node.color;
106106
nodeEl.className = 'node-label';
107107
return new CSS2DObject(nodeEl);

0 commit comments

Comments
 (0)