Skip to content

Commit 840912c

Browse files
committed
Handle null value in createDeepLinkPath
1 parent a6e070a commit 840912c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,5 +652,5 @@ export const shallowEqualKeys = (a,b, keys) => {
652652
})
653653
}
654654

655-
export const createDeepLinkPath = (str) => str.replace(/\s/g, "_")
655+
export const createDeepLinkPath = (str) => str ? str.replace(/\s/g, "_") : ""
656656
export const escapeDeepLinkPath = (str) => cssEscape( createDeepLinkPath(str) )

0 commit comments

Comments
 (0)