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
|
@ -49,7 +49,7 @@ export default class LanguageDropdown extends React.Component {
|
|||
this.setState({langs});
|
||||
}).catch(() => {
|
||||
this.setState({langs: ['en']});
|
||||
}).done();
|
||||
}).then();
|
||||
|
||||
if (!this.props.value) {
|
||||
// If no value is given, we start with the first
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue