@@ -39,7 +39,7 @@ export class DisinfectionSupplyComponent implements OnInit, OnDestroy {
ngOnDestroy(){
clearTimeout(this.timer);
clearTimeout(this.resizeTimer);
- this.mySwiper.destroy();
+ this.mySwiper && this.mySwiper.destroy();
window.onresize = null;
}