Navigate to the BP_PlayerInventoryComponent and create a new variable called “Base Inventory Slots” and set its variable type to integer. Then add it like show in the image below.

Next navigate to the BP_InventoryHUD and then to the Set End Inventory Slot collapsed nodes. Delete the highlighted nodes shown below, drag out from the player inventory component and get the Base Inventory Slots and connect that to the – node shown in the image below.