Go to the BP_PlayerInventory then to the Holdable collapsed node and add the highlighted node in the image below.

Then open the UnequipWeapon function and add the highlighted node in the image below.