From 087aff4ef423b0b19d5aa1c77f4eda91a7e275d3 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 8 Oct 2020 18:23:08 +0200 Subject: [PATCH] set to true if undefined passed in as well --- src/domain/navigation/Navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/navigation/Navigation.js b/src/domain/navigation/Navigation.js index 5e482c87..6520114c 100644 --- a/src/domain/navigation/Navigation.js +++ b/src/domain/navigation/Navigation.js @@ -58,9 +58,9 @@ export class Navigation { } export class Segment { - constructor(type, value = true) { + constructor(type, value) { this.type = type; - this.value = value; + this.value = value === undefined ? true : value; } }