Ensure the correct value for channelIsLoading is used (#2712)
This commit is contained in:
parent
7efb044aa9
commit
69a2c58f5e
1 changed files with 5 additions and 1 deletions
|
|
@ -11,8 +11,12 @@ import {handleSelectChannel, setChannelLoading} from 'app/actions/views/channel'
|
|||
import ChannelLoader from './channel_loader';
|
||||
|
||||
function mapStateToProps(state, ownProps) {
|
||||
const channelIsLoading = ownProps.hasOwnProperty('channelIsLoading') ?
|
||||
ownProps.channelIsLoading :
|
||||
state.views.channel.loading;
|
||||
|
||||
return {
|
||||
channelIsLoading: ownProps.channelIsLoading || state.views.channel.loading,
|
||||
channelIsLoading,
|
||||
theme: getTheme(state),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue