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

Commit

Permalink
Stop selecting sources with no url
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonLaster committed Feb 13, 2017
1 parent 033f799 commit e8ccb05
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 e8ccb05

Please sign in to comment.