LogScript: Warning: Script Msg: Attempted to access index 1 from array ‘Inventory’ of length 1

I got these warning messages. How to fix it?

“LogScript: Warning: Script Msg: Attempted to access index 1 from array ‘Inventory’ of length 1 in ‘/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C’!”

I think it’s something wrong with my pickup item func. inside thirdpersonBP:

Here are menu and interactions inside ThirdpersonBP(I add only these 2 in event graph):