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:
Sudheer 2019-01-31 20:12:25 +05:30 committed by GitHub
parent da32c22c56
commit d627f96589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) => {