Skip to content

Commit

Permalink
Merge pull request #465 from awcodes/fix/list-switcher
Browse files Browse the repository at this point in the history
Fix: list resource layout switcher
  • Loading branch information
awcodes authored Apr 1, 2024
2 parents 4053f1e + 1845395 commit 7864cf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Resources/MediaResource/ListMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ class ListMedia extends ListRecords
{
public string $layoutView;

public function boot()
public function mount(): void
{
parent::mount();
$this->layoutView = CuratorPlugin::get()->getDefaultListView();
}

Expand Down

0 comments on commit 7864cf2

Please sign in to comment.