need help in slick slider
I am working on venture theme of shopify. i add slick slide like this ' let slickSetings = $(".product-single__thumbnails-product-template").slick("getSlick"); // console.log(slickSetings); $(".product-single__thumbnails-product-template").slick("unslick"); let responseData = await this.fetchResponse(handle); let dataObj = this.productDataObject(responseData.product); this.addImagesOfRespectiveId(idOfImg, dataObj, allLiDiv); document.querySelector(".single-option-selector").addEventListener("change", (eventHandler) => { console.log("hello"); const urlParams = new URLSearchParams(window.location.search); idOfImg = urlParams.get("variant"); this.addImagesOfRespectiveId(idOfImg, dataObj, allLiDiv); }); $(".photos__item--thumbs").slick(slickSetings); ' i am getting wrong ans here , having doubt also that from which class we are removing or destroying slick needs to be same when we reinitialise slick again