From 959703c51a13895fc84545c5bee0030fabde8665 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sun, 4 Feb 2018 19:32:29 -0800 Subject: [PATCH] Fix localStorage --- lib/routing.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/routing.js b/lib/routing.js index 6236077..af879e2 100644 --- a/lib/routing.js +++ b/lib/routing.js @@ -10,6 +10,7 @@ if (typeof window !== 'undefined') { const mapper = new Morph({ types: { bool: v => { + if (v == null) return undefined if (v === 'false') return false return Boolean(v) }