From 840912cb567011d5967fe977197063aa4e7fc40b Mon Sep 17 00:00:00 2001 From: Owen Conti Date: Wed, 13 Sep 2017 21:38:07 -0600 Subject: [PATCH] Handle null value in createDeepLinkPath --- src/core/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/utils.js b/src/core/utils.js index eda25c3f..4a2845b7 100644 --- a/src/core/utils.js +++ b/src/core/utils.js @@ -652,5 +652,5 @@ export const shallowEqualKeys = (a,b, keys) => { }) } -export const createDeepLinkPath = (str) => str.replace(/\s/g, "_") +export const createDeepLinkPath = (str) => str ? str.replace(/\s/g, "_") : "" export const escapeDeepLinkPath = (str) => cssEscape( createDeepLinkPath(str) ) \ No newline at end of file