Overlapping item being reset after first weapon swing

Hello,
I was wondering if anyone could help me resolve my issue of a variable being reset after my first melee swing. So I have an overlapping item variable that is set every time I overlap with an item, hence the name. But for some reason, after I swing my weapon that variable, overlapping item, it set back to overlapping with my weapon bp. I’m not sure why this is happening or even where to start finding the solution.