Skip to content

Commit

Permalink
fix: only channels of first channelttype was set after reload
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Jun 27, 2019
1 parent 82373dd commit f50296e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/reducers/channelsReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ export const channels = ((state = defaultChannelsReducerState([1]), action: any)
nextState = defaultChannelsReducerState(action.numberOfTypeChannels);
if (action.allState.channel.length == nextState[0].channel.length) {
action.allState.channel.map((channel: any, index: number) => {
if (index < action.numberOfTypeChannels[0]) {
nextState[0].channel[index] = channel;
}
nextState[0].channel[index] = channel;
});
}
return nextState;
Expand Down

0 comments on commit f50296e

Please sign in to comment.