diff --git a/javascript/GridFieldExtensions.js b/javascript/GridFieldExtensions.js index fbfe90ce..66b9705a 100644 --- a/javascript/GridFieldExtensions.js +++ b/javascript/GridFieldExtensions.js @@ -205,7 +205,9 @@ }); }, onremove: function() { - this.sortable("destroy"); + if(this.data('sortable')) { + this.sortable("destroy"); + } } });