X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/391478465ab5970ad19649d41a3f8c7816efb294..refs/pull/5681/head:/resources/views/settings/audit.blade.php
diff --git a/resources/views/settings/audit.blade.php b/resources/views/settings/audit.blade.php
index 9f0572c1a..8e4776680 100644
--- a/resources/views/settings/audit.blade.php
+++ b/resources/views/settings/audit.blade.php
@@ -16,7 +16,7 @@
@endforeach
-
+
@@ -94,8 +94,8 @@
class="mr-xs hide-over-m">{{ trans('settings.audit_table_event') }}
: {{ $activity->type }}
- @if($activity->entity)
- @include('entities.icon-link', ['entity' => $activity->entity])
+ @if($activity->loggable instanceof \BookStack\Entities\Models\Entity)
+ @include('entities.icon-link', ['entity' => $activity->loggable])
@elseif($activity->detail && $activity->isForEntity())
{{ trans('settings.audit_deleted_item') }}