Skip to content

Commit

Permalink
feat: tags slider error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mythter committed Aug 11, 2024
1 parent 85a9a23 commit 788d0d6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,14 @@ const TagsSliderModal = ({ streetCodeid, activeTagId, setActiveTagId, showAllTag
</div>
));

const initialSlide = showAllTags ? getAllTagsArray.findIndex((tag) => tag.id === activeTagId) : getTagArray.findIndex((tag) => tag.id === activeTagId);
const initialSlide = showAllTags
? getAllTagsArray.findIndex((tag) => tag.id === activeTagId)
: getTagArray.findIndex((tag) => tag.id === activeTagId);

const sliderProps = {
className: 'tagSliderClass',
infinite: false,
slidesToSho: 1,
slidesToShow: 1,
arrows: false,
swipe: false,
dots: false,
Expand Down

0 comments on commit 788d0d6

Please sign in to comment.