My website features a news section where each card and image appear twice on the screen.
Visit my CodePen profile for more information.
One of the components responsible for this is called doubleUp
created() {
this.doubleUp()
},
I'm wondering if these two lines of code are causing the duplication:
newImage.id = image.id * 2
this.images.push(newImage)
I've experimented with changing the multiplication value to *1 or *6, but it doesn't affect the number of cards displayed. I'm puzzled as to why the images keep rendering twice.