Skip to content

Commit

Permalink
Merge pull request #2 from lara-zeus/fix-none-resource
Browse files Browse the repository at this point in the history
fix if not a resource
  • Loading branch information
atmonshi authored Sep 3, 2024
2 parents 5dca97e + 21e38ea commit 450ca0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
@if(!is_bool(\Livewire\Livewire::current()))
@if(!is_bool(\Livewire\Livewire::current()) && method_exists(\Livewire\Livewire::current(),'getResource'))
<livewire:delia-bookmarks
:resource="\Livewire\Livewire::current()->getResource()"
/>
Expand Down

0 comments on commit 450ca0f

Please sign in to comment.