File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/shared/components/Settings Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export default class AddWebLink extends React.Component {
63
63
const {
64
64
allLinks,
65
65
} = this . props ;
66
- return _ . some ( allLinks , link => link . URL . toLowerCase ( ) === webLink . toLowerCase ( ) ) ;
66
+ return _ . some ( allLinks , link => link . URL && ( link . URL . toLowerCase ( ) === webLink . toLowerCase ( ) ) ) ;
67
67
}
68
68
69
69
render ( ) {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export default class AddWebLink extends React.Component {
60
60
const {
61
61
allLinks,
62
62
} = this . props ;
63
- return _ . some ( allLinks , link => link . URL . toLowerCase ( ) === webLink . toLowerCase ( ) ) ;
63
+ return _ . some ( allLinks , link => link . URL && ( link . URL . toLowerCase ( ) === webLink . toLowerCase ( ) ) ) ;
64
64
}
65
65
66
66
render ( ) {
You can’t perform that action at this time.
0 commit comments