Skip to content

Commit

Permalink
oops, don't try to delete nonexistent tags when moving a room from co…
Browse files Browse the repository at this point in the history
…nversations to favs or similar
  • Loading branch information
ara4n committed Nov 30, 2015
1 parent 4614017 commit 4409f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/rooms/RoomDNDView.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var roomTileSource = {

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

0 comments on commit 4409f07

Please sign in to comment.