Skip to content

Commit

Permalink
Fixes adding bookmarks and folders to the existing folders
Browse files Browse the repository at this point in the history
Resolves brave#12478
Resolves brave#12477

Auditors:

Test Plan:
  • Loading branch information
NejcZdovc committed Jan 4, 2018
1 parent 6d2dc67 commit b383c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/common/cache/bookmarkOrderCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const addCacheItem = (state, parentId = 0, key, destinationKey, tag, append) =>

const cache = state.getIn(['cache', 'bookmarkOrder', parentId])
// destination key is not provided
if (destinationKey == null) {
if (destinationKey == null || parentId === destinationKey) {
const keyExist = cache.some(item => item.get('key') === key)
if (keyExist) {
return state
Expand Down

0 comments on commit b383c5b

Please sign in to comment.