Skip to content

Commit

Permalink
Merge pull request #13 from codedor/hotfix/parent-check
Browse files Browse the repository at this point in the history
Fix broken resource picker in the Page Architect
  • Loading branch information
jyrkidn authored Jun 14, 2024
2 parents c68c1e6 + deef6e9 commit 7a57ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/livewire/resource-picker.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
submit () {
let parent = Livewire.all().find(component => component.name.includes('app.filament.resources'))
if (parent) {
if (parent && parent.$wire.$get('{{ $statePath }}') !== undefined) {
parent.$wire.$set('{{ $statePath }}', this.state)
}
Expand Down

0 comments on commit 7a57ba2

Please sign in to comment.