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:
David Baker 2018-06-26 16:33:28 +01:00
parent a88297d7a6
commit c780cd05a8
4 changed files with 6 additions and 10 deletions

View file

@ -321,12 +321,8 @@ export default class AppTile extends React.Component {
this.setState({deleting: true});
WidgetUtils.setRoomWidget(
this.props.id,
null,
null,
null,
null,
this.props.room.roomId,
this.props.id,
).catch((e) => {
console.error('Failed to delete widget', e);
}).finally(() => {