Skip to content

Commit 5649184

Browse files
committed
fix(AppNavigationItem): href check fix
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 parent 71a0a81 commit 5649184

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/NcAppNavigationItem/NcAppNavigationItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ export default {
614614
*/
615615
isExternal(href) {
616616
// Match any protocol
617-
return href.match(/[a-z]+:\/\//i)
617+
return href && href.match(/[a-z]+:\/\//i)
618618
},
619619
},
620620
}

0 commit comments

Comments
 (0)