Skip to content

Commit a73945e

Browse files
committed
* sortable: safely call destroy method on module to prevent potential errors.
1 parent 57fbba8 commit a73945e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/sortable/src/vanilla/sortable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class Sortable extends Component<SortableOptions> {
8080
*/
8181
destroy(): void {
8282
super.destroy();
83-
this.module.destroy();
83+
this.module?.destroy();
8484
}
8585

8686
/**

0 commit comments

Comments
 (0)