Skip to content

Commit

Permalink
fix(draggable-column): guard against undefined sourceColumn (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmackenz authored and buschtoens committed Dec 1, 2017
1 parent c646509 commit f5b56c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/mixins/draggable-column.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default Mixin.create({
/*
A column is a valid drop target only if its in the same group
*/
return column.get('droppable') && column.get('parent') === sourceColumn.get('parent');
return sourceColumn && column.get('droppable') && column.get('parent') === sourceColumn.get('parent');
}).volatile().readOnly(),

dragStart(e) {
Expand Down

0 comments on commit f5b56c9

Please sign in to comment.