diff --git a/app/common/cache/bookmarkOrderCache.js b/app/common/cache/bookmarkOrderCache.js index 462ba2b6de5..29397ab1619 100644 --- a/app/common/cache/bookmarkOrderCache.js +++ b/app/common/cache/bookmarkOrderCache.js @@ -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