Skip to content

Commit 3c0b5df

Browse files
committed
fix error in prevous commit
1 parent 4a45baa commit 3c0b5df

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nodeLabelWorker.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,14 @@ function nodeLabelWorker({ node, network }) {
7979

8080
switch (node.networkCanvasType) {
8181
case 'person':
82-
const customLabel;
83-
8482
if (network.edges.some(
8583
edge => edge.from === node.networkCanvasId || edge.to === node.networkCanvasId
8684
)) {
8785
label = `🔗\u{0a}${label}`;
8886
} else if (node.close_friend) {
8987
label = `❤️\u{0a}${label}`;
9088
}
91-
return customLabel
89+
break;
9290
case 'venue':
9391
label = `🏥\u{0a}${node.name}`;
9492
break;

0 commit comments

Comments
 (0)