Catch errors adding widget
This commit is contained in:
parent
e9336eab63
commit
7bfe84f8be
2 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue