Hi, I have a problem using livewire component.
In my index.blade.php y have this:
<livewire:tournament :tournaments="$tournaments"></livewire:tournament>
where tournaments is a json with elements from an external API.
So, in my Component Class I get the tournaments and I have another methods for increment and decrease differents counts.
If I click in one button where I have wire:click=“decreaseAdults” I get always the same error:
ErrorException
Trying to get property ‘name’ of non-object
I think the tournaments are empty after click on button.
I don’t know to resolve my problem.
Here some screenshoots from my project.
Thank you so much for your help!