MM-13866 Never ending loader if app is un authenticated (#2539)
* if token or url is not present setState of loaded flag to true
This commit is contained in:
parent
24ff55f4c0
commit
97e2647eae
1 changed files with 3 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ export default class ExtensionPost extends PureComponent {
|
|||
actions: PropTypes.shape({
|
||||
getTeamChannels: PropTypes.func.isRequired,
|
||||
}).isRequired,
|
||||
channelId: PropTypes.string.isRequired,
|
||||
channelId: PropTypes.string,
|
||||
currentUserId: PropTypes.string.isRequired,
|
||||
maxFileSize: PropTypes.number.isRequired,
|
||||
navigation: PropTypes.object.isRequired,
|
||||
|
|
@ -325,8 +325,9 @@ export default class ExtensionPost extends PureComponent {
|
|||
});
|
||||
}
|
||||
|
||||
this.setState({error, files, value, hasPermission: true, totalSize, loaded: true});
|
||||
this.setState({error, files, value, hasPermission: true, totalSize});
|
||||
}
|
||||
this.setState({loaded: true});
|
||||
};
|
||||
|
||||
onClose = (data) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue