s/.done(/.then(/ since modern es6 track unhandled promise exceptions
This commit is contained in:
parent
0a21957b2c
commit
09a8fec261
43 changed files with 74 additions and 72 deletions
|
@ -47,7 +47,7 @@ export default createReactClass({
|
|||
},
|
||||
|
||||
_fetch: function() {
|
||||
this.context.matrixClient.getJoinedGroups().done((result) => {
|
||||
this.context.matrixClient.getJoinedGroups().then((result) => {
|
||||
this.setState({groups: result.groups, error: null});
|
||||
}, (err) => {
|
||||
if (err.errcode === 'M_GUEST_ACCESS_FORBIDDEN') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue