rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.7k stars 320 forks source link

Update ConfigurableAreasHelpers.php #1651

Closed viliusvsx closed 4 months ago

viliusvsx commented 4 months ago

Hello, this commit fixes configurable areas for the toolbar view. Previous, if you set a configurable area as I write below, you get an error Undefined array key 0

public function configure(): void
    {
        $this->setConfigurableAreas([
            'toolbar-left-start' => [
                'path.to.view' => [
                    'param1' => $param1,
                    'param2' => $param2,
                ]
            ]
        ]);
    }

EDIT: Sorry, my bad. Closing PR

All Submissions:

New Feature Submissions:

  1. [ ] Does your submission pass tests and did you add any new tests needed for your feature?
  2. [ ] Did you update all templates (if applicable)?
  3. [ ] Did you add the relevant documentation (if applicable)?
  4. [ ] Did you test locally to make sure your feature works as intended?

Changes to Core Features:

lrljoe commented 4 months ago

Did you fix your issue? Or is there something that needs looking at?

viliusvsx commented 4 months ago

Yeah, I fixed it. The code works just fine, it's just my mistake, that I didn't read documentation carefully