Skip to content
Prev Previous commit
Next Next commit
Solving SonrQube Observations
  • Loading branch information
CarliPinell committed May 28, 2024
commit 477f6bbb3f5b7034c14727f851dd4169347a7bb6
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default {
});
},
updateSlideWidth() {
if (this.$refs.slides && this.$refs.slides[0]) {
if (this.$refs.slides?.[0]) {
this.slideWidth = this.$refs.slides[0].offsetWidth + 11;
this.translateX = this.slideWidth * -this.currentIndex - 10;
}
Expand Down