Go to the BP_PlayerInventory and open the RemoveAttachment function, then add in the highlighted nodes shown in the image below.

Then go to the BP_MasterInventory and open the FindEmptySlot function and add the highlighted nodes shown in the image below.