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

Commit

Permalink
Fixes Add Bookmarks in Bookmarks Manager
Browse files Browse the repository at this point in the history
Resolves #7801

Auditors: @bsclifton @darkdh

Test Plan:
- go to Bookmarks Manager
- right click in a bookmarks area (right side)
- select Add bookmark
- bookmark dialog is opened
  • Loading branch information
NejcZdovc committed Mar 22, 2017
1 parent d626336 commit de0eac8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/contextMenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ const addBookmarkMenuItem = (label, siteDetail, closestDestinationDetail, isPare
if (isParent) {
siteDetail = siteDetail.set('parentFolderId', closestDestinationDetail && (closestDestinationDetail.get('folderId') || closestDestinationDetail.get('parentFolderId')))
}
if (siteDetail.constructor !== Immutable.Map) {
siteDetail = Immutable.fromJS(siteDetail)
}
siteDetail = siteDetail.set('location', urlUtil.getLocationIfPDF(siteDetail.get('location')))
windowActions.setBookmarkDetail(siteDetail, siteDetail, closestDestinationDetail, true)
}
Expand Down

0 comments on commit de0eac8

Please sign in to comment.