Skip to content

Commit

Permalink
Update ActivityLogFeed.php
Browse files Browse the repository at this point in the history
  • Loading branch information
glennjacobs committed Dec 22, 2023
1 parent d2674e5 commit e860ee8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/admin/src/Livewire/Components/ActivityLogFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ public function activityLog(): \Illuminate\Pagination\LengthAwarePaginator
#[Computed]
public function renderers()
{
$subjectClass = ModelManifest::getMorphClassBaseModel(get_class($this->subject)) ?? get_class($this->subject);

return ActivityLog::getItems($subjectClass);
return ActivityLog::getItems($this->subject::modelClass());
}

#[Computed]
Expand Down

0 comments on commit e860ee8

Please sign in to comment.