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

Commit

Permalink
Do not let empty spaced bookmark title fixes #3347
Browse files Browse the repository at this point in the history
  • Loading branch information
Radoslav Vitanov committed Aug 25, 2016
1 parent c11d11f commit 575ea0c
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 575ea0c

Please sign in to comment.