Fixup vertex label

This commit is contained in:
Ladd Hoffman 2023-04-16 20:40:27 -05:00
parent 226e95cfba
commit 335c89b6d4
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ export class WDAG {
} }
const vertex = new Vertex(this, type, id, data, options); const vertex = new Vertex(this, type, id, data, options);
this.vertices.set(id, vertex); this.vertices.set(id, vertex);
vertex.setDisplayLabel(id, label ?? id); vertex.setDisplayLabel(label ?? id);
return vertex; return vertex;
} }