Skip to content

Commit

Permalink
Fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdkei authored and mtdkei committed Feb 21, 2025
1 parent 505569a commit 5a01230
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions src/blocks/slider/edit-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,11 @@ const LaunchSwiper = (slider) => {
if (swiperButtonNext) {
swiperButtonNext.style.display = '';
}
const swiperPagination = slider.querySelector(
'.swiper-pagination'
);
const swiperPagination =
slider.querySelector('.swiper-pagination');
if (swiperPagination) {
swiperPagination.style.display = '';
}
}

// Sloder の設定を作成
const SwiperSetting = {};
Expand Down Expand Up @@ -251,9 +250,7 @@ const LaunchSwiper = (slider) => {
}

// ページネーションの非表示
const swiperPagination = slider.querySelector(
'.swiper-pagination'
);
const swiperPagination = slider.querySelector('.swiper-pagination');
if (swiperPagination) {
swiperPagination.style.display = 'none';
}
Expand Down
4 changes: 2 additions & 2 deletions src/blocks/slider/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function SliderEdit(props) {
editSliderLaunch();
}, 50);
}

return () => clearTimeout(timer);
}, [editorMode]);

Expand Down Expand Up @@ -578,4 +578,4 @@ export default function SliderEdit(props) {
</div>
</>
);
}
}

0 comments on commit 5a01230

Please sign in to comment.