Change argument order of setRoomWidget
So when deleting a widget we can just omit the ones we don't need
This commit is contained in:
parent
a88297d7a6
commit
c780cd05a8
4 changed files with 6 additions and 10 deletions
|
@ -336,7 +336,7 @@ function setWidget(event, roomId) {
|
|||
if (!roomId) {
|
||||
sendError(event, _t('Missing roomId.'), null);
|
||||
}
|
||||
WidgetUtils.setRoomWidget(widgetId, widgetType, widgetUrl, widgetName, widgetData, roomId).then(() => {
|
||||
WidgetUtils.setRoomWidget(roomId, widgetId, widgetType, widgetUrl, widgetName, widgetData).then(() => {
|
||||
sendResponse(event, {
|
||||
success: true,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue