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

Commit

Permalink
Merge pull request #2008 from jasonLaster/fix-welcomebox
Browse files Browse the repository at this point in the history
Stop selecting sources with no url
  • Loading branch information
wldcordeiro authored Feb 14, 2017
2 parents f0abfb8 + e8ccb05 commit 149683d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function getNewSelectedSourceId(state: SourcesState, availableTabs) : string {
const lastAvailbleTabIndex = availableTabs.size - 1;
const newSelectedTabIndex = Math.min(leftNeighborIndex, lastAvailbleTabIndex);
let tabSource = state.sources.find(source =>
source.get("url") == availableTabs.toJS()[newSelectedTabIndex]);
source.get("url") === availableTabs.toJS()[newSelectedTabIndex]);

if (tabSource) {
return tabSource.get("id");
Expand Down

0 comments on commit 149683d

Please sign in to comment.