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
|
@ -210,7 +210,7 @@ export default class WidgetUtils {
|
|||
console.error(`$widgetId is non-configurable`);
|
||||
}
|
||||
|
||||
const addingWidget = widgetUrl !== null;
|
||||
const addingWidget = Boolean(widgetUrl);
|
||||
|
||||
// Add new widget / update
|
||||
if (addingWidget) {
|
||||
|
@ -234,10 +234,10 @@ export default class WidgetUtils {
|
|||
});
|
||||
}
|
||||
|
||||
static setRoomWidget(widgetId, widgetType, widgetUrl, widgetName, widgetData, roomId) {
|
||||
static setRoomWidget(roomId, widgetId, widgetType, widgetUrl, widgetName, widgetData) {
|
||||
let content;
|
||||
|
||||
const addingWidget = widgetUrl !== null;
|
||||
const addingWidget = Boolean(widgetUrl);
|
||||
|
||||
if (addingWidget) {
|
||||
content = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue