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

Show default bookmark title for synced bookmarks #7438

Merged
merged 1 commit into from
Mar 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/renderer/components/addEditBookmarkHanger.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class AddEditBookmarkHanger extends ImmutableComponent {
: (typeof location === 'string' && location.trim().length > 0)
}
get displayBookmarkName () {
if (this.props.currentDetail.get('customTitle') !== undefined) {
const customTitle = this.props.currentDetail.get('customTitle')
if (customTitle !== undefined && customTitle !== '') {
return this.props.currentDetail.get('customTitle')
}
return this.props.currentDetail.get('title') || ''
Expand Down