s/.done(/.then(/ since modern es6 track unhandled promise exceptions
This commit is contained in:
@@ -52,7 +52,7 @@ export default class DevicesPanel extends React.Component {
|
||||
}
|
||||
|
||||
_loadDevices() {
|
||||
MatrixClientPeg.get().getDevices().done(
|
||||
MatrixClientPeg.get().getDevices().then(
|
||||
(resp) => {
|
||||
if (this._unmounted) { return; }
|
||||
this.setState({devices: resp.devices || []});
|
||||
|
||||
Reference in New Issue
Block a user