Array push - getting empty object in array

Sorry for bad explanation, I was in hurry so just now I noticed that I didn’t give any info about my problem.

So it’s here:

As you see I have one fake item array that contain object (in this case the product), and one empty array bag (shopping cart) where I want the store selected item - below is addToBag method that should add product to the bag array after clicking on button, but for some reasons it pass only empty object to bag array - so that’s the main issue.