Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
/ Sortable Public archive
forked from SortableJS/Sortable

Commit a6c6df6

Browse files
AlexAlex
Alex
authored and
Alex
committed
fix "Cannot read property 'destroy' of undefined"
1 parent 0455fa4 commit a6c6df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meteor/reactivize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,5 @@ Template.sortable.rendered = function () {
197197

198198

199199
Template.sortable.destroyed = function () {
200-
this.sortable.destroy();
200+
if(this.sortable) this.sortable.destroy();
201201
};

0 commit comments

Comments
 (0)