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