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

Commit

Permalink
Fix race condition with suggestions index
Browse files Browse the repository at this point in the history
Fix #11467
  • Loading branch information
bbondy committed Oct 11, 2017
1 parent 2617c2f commit ed9902d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/renderer/reducers/urlBarReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const updateSearchEngineInfoFromInput = (state, frameProps) => {
const setUrlSuggestions = (state, suggestionList) => {
if (suggestionList !== undefined) {
state = state.setIn(activeFrameStatePath(state).concat(['navbar', 'urlbar', 'suggestions', 'suggestionList']), suggestionList)
state = state.setIn(activeFrameStatePath(state).concat(['navbar', 'urlbar', 'suggestions', 'selectedIndex']), null)
}
state = updateUrlSuffix(state, suggestionList)
return state
Expand Down

0 comments on commit ed9902d

Please sign in to comment.