Skip to content

Commit

Permalink
Fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Raathigesh committed Dec 15, 2016
1 parent 914da82 commit 0cb1912
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/components/WidgetFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ const cardTarget = {
}, monitor.getItem().widgetName);

props.onMove(newLayout);
}

// Note: we're mutating the monitor item here!
// Generally it's better to avoid mutations,
// but it's good here for the sake of performance
// to avoid expensive index searches.
monitor.getItem().widgetIndex = hoverIndex;
// Note: we're mutating the monitor item here!
// Generally it's better to avoid mutations,
// but it's good here for the sake of performance
// to avoid expensive index searches.
monitor.getItem().widgetIndex = hoverIndex;
}
},
};

Expand Down

0 comments on commit 0cb1912

Please sign in to comment.