Handle null value in createDeepLinkPath

This commit is contained in:
Owen Conti
2017-09-13 21:38:07 -06:00
parent a6e070ac76
commit 840912cb56

View File

@@ -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) )