Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3412 from Sh1d0w/hotfix/issue-3347
Browse files Browse the repository at this point in the history
Do not let empty spaced bookmark title fixes #3347
  • Loading branch information
bbondy authored Aug 25, 2016
2 parents 52e4af0 + 575ea0c commit bd31ac8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/components/addEditBookmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class AddEditBookmark extends ImmutableComponent {
}

get bookmarkNameValid () {
return (this.props.currentDetail.get('title') || this.props.currentDetail.get('customTitle'))
let title = (this.props.currentDetail.get('title') || this.props.currentDetail.get('customTitle'))
return ((typeof title === 'string') && title.trim().length > 0)
}

get isFolder () {
Expand Down

0 comments on commit bd31ac8

Please sign in to comment.