Fix a couple of minor errors in the room list
bluebird promises don't support .fail, so some operations didn't work quite right. We should use .catch instead.
This commit is contained in:
parent
e923847dac
commit
bc2f639aae
3 changed files with 4 additions and 4 deletions
|
@ -68,7 +68,7 @@ module.exports = React.createClass({
|
|||
if (self.props.onFinished) {
|
||||
self.props.onFinished();
|
||||
};
|
||||
}).fail(function(err) {
|
||||
}).catch(function(err) {
|
||||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t('Failed to remove tag %(tagName)s from room', {tagName: tagNameOff}),
|
||||
|
@ -85,7 +85,7 @@ module.exports = React.createClass({
|
|||
if (self.props.onFinished) {
|
||||
self.props.onFinished();
|
||||
};
|
||||
}).fail(function(err) {
|
||||
}).catch(function(err) {
|
||||
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: _t('Failed to remove tag %(tagName)s from room', {tagName: tagNameOn}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue