leo6104 / ngx-slick-carousel

Angular 17+ wrapper for slick plugin
113 stars 45 forks source link

Added a null check before accessing this.$instance in ngOnChanges() #112

Open AlexOliveiraaDev opened 7 months ago

AlexOliveiraaDev commented 7 months ago

Ensures that this.$instance is defined before accessing it to prevent potential TypeError when calling slick() method. This check ensures the Slick Carousel component is properly initialized before manipulating its properties.