Browse Source

Handle null value in createDeepLinkPath

bubble
Owen Conti 7 years ago
parent
commit
840912cb56
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/core/utils.js

+ 1
- 1
src/core/utils.js 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) ) export const escapeDeepLinkPath = (str) => cssEscape( createDeepLinkPath(str) )

Loading…
Cancel
Save