Need help with something regarding dropping items from an Inventory

I can drop items fine but instead of only dropping one item (The item I dropped) every item drops with it… Am I handling my on-drop function wrong?

I figured it out. I was passing the item type which
was dropping everything from that category