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

Commit

Permalink
Merge pull request #9432 from brave/fix/over-sorting-sites
Browse files Browse the repository at this point in the history
Don't sort sites when adding or removing them
  • Loading branch information
bsclifton authored Jun 14, 2017
2 parents c5718d0 + 04f1313 commit 89058cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/browser/reducers/sitesReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ const sitesReducer = (state, action, immutableAction) => {
state = syncUtil.updateSiteCache(state, action.destinationDetail || action.siteDetail)
}
}
state = state.set('sites', state.get('sites').sort(siteUtil.siteSort))
state = updateActiveTabBookmarked(state)
break
case appConstants.APP_REMOVE_SITE:
state = siteUtil.removeSite(state, action.siteDetail, action.tag, true)
state = state.set('sites', state.get('sites').sort(siteUtil.siteSort))
if (syncEnabled()) {
state = syncUtil.updateSiteCache(state, action.siteDetail)
}
Expand Down
1 change: 0 additions & 1 deletion app/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ module.exports.onSyncReady = (isFirstRun, e) => {

// Sync bookmarks that have not been synced yet.
siteUtil.getBookmarks(sites).filter(site => shouldSyncBookmark(site))
.sortBy(site => site.get('order'))
.forEach(syncBookmark)

// Sync site settings that have not been synced yet
Expand Down

0 comments on commit 89058cf

Please sign in to comment.