Catch errors adding widget

This commit is contained in:
David Baker 2018-05-15 14:53:49 +01:00
parent e9336eab63
commit 7bfe84f8be
2 changed files with 4 additions and 4 deletions

View file

@ -404,6 +404,8 @@ function setWidget(event, roomId) {
});
dis.dispatch({ action: "user_widget_updated" });
}).catch((e) => {
sendError(event, _t('Error adding widget'));
});
} else { // Room widget
if (!roomId) {