set to true if undefined passed in as well

This commit is contained in:
Bruno Windels 2020-10-08 18:23:08 +02:00
parent 4fe971775c
commit 087aff4ef4

View file

@ -58,9 +58,9 @@ export class Navigation {
} }
export class Segment { export class Segment {
constructor(type, value = true) { constructor(type, value) {
this.type = type; this.type = type;
this.value = value; this.value = value === undefined ? true : value;
} }
} }