diff --git a/src/skins/vector/views/molecules/RoomTile.js b/src/skins/vector/views/molecules/RoomTile.js index da38cb0f..471bd8a1 100644 --- a/src/skins/vector/views/molecules/RoomTile.js +++ b/src/skins/vector/views/molecules/RoomTile.js @@ -58,13 +58,13 @@ var roomTileSource = { endDrag: function (props, monitor, component) { var item = monitor.getItem(); - var dropResult = monitor.getDropResult(); if (props.roomSubList.debug) console.log("roomTile endDrag for " + item.room.roomId + " with didDrop=" + monitor.didDrop()); props.room._dragging = false; if (monitor.didDrop()) { - monitor.getDropResult().component.forceUpdate(); // as we're not using state + if (props.roomSubList.debug) console.log("force updating component " + item.targetList.props.label); + item.targetList.forceUpdate(); // as we're not using state } if (monitor.didDrop() && item.targetList.props.editable) { diff --git a/src/skins/vector/views/organisms/RoomSubList.js b/src/skins/vector/views/organisms/RoomSubList.js index c627e9d7..02078f1a 100644 --- a/src/skins/vector/views/organisms/RoomSubList.js +++ b/src/skins/vector/views/organisms/RoomSubList.js @@ -31,7 +31,6 @@ var roomListTarget = { drop: function(props, monitor, component) { if (debug) console.log("dropped on sublist") - return { component: component }; }, hover: function(props, monitor, component) {