Skip to content

Commit 3349b59

Browse files
committed
[labels] allow edge labels without node labels
relates #265
1 parent 500bbd8 commit 3349b59

File tree

1 file changed

+2
-1
lines changed
  • packages/gephi-lite/src/core/appearance

1 file changed

+2
-1
lines changed

packages/gephi-lite/src/core/appearance/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ export function makeGetStringAttr<
274274
let getLabel: StringAttrGetter | null = null;
275275
switch (stringAttrDef.type) {
276276
case "none":
277-
getLabel = () => null;
277+
// using "" instead of null to workaround adge-node labels dependency see https://github.com/jacomyal/sigma.js/issues/1527
278+
getLabel = () => "";
278279
break;
279280
case "fixed":
280281
getLabel = () => stringAttrDef.value;

0 commit comments

Comments
 (0)