Skip to content

Commit e4c1176

Browse files
committed
Leave harmless undefined vid in the set
Signed-off-by: Florian Dupuy <[email protected]>
1 parent 49f78a9 commit e4c1176

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/single-line-diagram-viewer.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,7 @@ export class SingleLineDiagramViewer {
377377
private addNavigationArrow() {
378378
if (this.onNextVoltageCallback !== null) {
379379
let navigable = this.svgMetadata?.nodes.filter((el) => el.nextVId);
380-
const vlList = navigable
381-
?.map((element) => element.vid)
382-
.filter((vid) => vid !== '');
380+
const vlList = navigable?.map((element) => element.vid);
383381
const vlSet = new Set(vlList);
384382

385383
//remove arrows if the arrow points to the current svg

0 commit comments

Comments
 (0)