Looking for help or hints - Equipment system not working as I expected

Hi everyone.

First of all, I’m quite new to unreal and blueprints. Actually I’m working on a little prototype where the character can collect different tarot cards and equip them. The problem is that everytime I open the equipment, the cards get duplicated.

This function is called everytime I press the E key to open the equipment tab.

My guess is that I have to add another branch somewhere to compare the inventory data array and the Inventory Stack array but I’m quite lost.

Every type of help would be appreciated. Thanks in advice!

Im posting more bigger images here of the code:

Here there is a gif with the “bug” itself

BugInventory3

So the solution was easier than i expected. I’ve just created a new function that I call whenever I close the inventory. What that function does is that removes all the chillds that I’ve created.