diff --git a/package.json b/package.json index 17a1ea36c..bc87ac33d 100644 --- a/package.json +++ b/package.json @@ -105,4 +105,4 @@ "vite": "^4.5.0", "vue": "^3.3.6" } -} +} \ No newline at end of file diff --git a/src/core/core.mjs b/src/core/core.mjs index 1ba2131e3..0246dcf95 100644 --- a/src/core/core.mjs +++ b/src/core/core.mjs @@ -254,9 +254,7 @@ class Swiper { getSlideIndexByData(index) { return this.getSlideIndex( - this.slides.find( - (slideEl) => slideEl.getAttribute('data-swiper-slide-index') * 1 === index - ), + this.slides.find((slideEl) => slideEl.getAttribute('data-swiper-slide-index') * 1 === index), ); }