Skip to content

Commit 4409f07

Browse files
committed
oops, don't try to delete nonexistent tags when moving a room from conversations to favs or similar
1 parent 4614017 commit 4409f07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/components/views/rooms/RoomDNDView.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var roomTileSource = {
6868

6969
if (monitor.didDrop() && item.targetList.props.editable) {
7070
// if we moved lists, remove the old tag
71-
if (item.targetList !== item.originalList) {
71+
if (item.targetList !== item.originalList && item.originalList.props.tagName) {
7272
// commented out attempts to set a spinner on our target component as component is actually
7373
// the original source component being dragged, not our target. To fix we just need to
7474
// move all of this to endDrop in the target instead. FIXME later.

0 commit comments

Comments
 (0)