Skip to content

Commit

Permalink
Handle nullish values in LinkControl search handler
Browse files Browse the repository at this point in the history
Co-authored-by: Nik Tsekouras <[email protected]>
  • Loading branch information
tyxla and ntsekouras committed Aug 9, 2022
1 parent 427d638 commit b56633a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const handleDirectEntry = ( val ) => {
type = TEL_TYPE;
}

if ( val.startsWith( '#' ) ) {
if ( val?.startsWith( '#' ) ) {
type = INTERNAL_TYPE;
}

Expand Down

0 comments on commit b56633a

Please sign in to comment.