Skip to content

Commit

Permalink
Merge pull request #51 from future-social/main
Browse files Browse the repository at this point in the history
fix error:  Correctly handle relational attributes
  • Loading branch information
pxlrbt authored Aug 21, 2024
2 parents 251228a + 49316dc commit 1d4bd4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/pages/list-activities.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class="right"
</x-slot:header>
@foreach (data_get($changes, 'attributes', []) as $field => $change)
@php
$oldValue = data_get($changes, "old.{$field}");
$newValue = data_get($changes, "attributes.{$field}");
$oldValue = isset($changes['old'][$field]) ? $changes['old'][$field] : '';
$newValue = isset($changes['attributes'][$field]) ? $changes['attributes'][$field] : '';
@endphp
<x-filament-tables::row @class(['bg-gray-100/30' => $loop->even])>
<x-filament-tables::cell width="20%" class="px-4 py-2 align-top sm:first-of-type:ps-6 sm:last-of-type:pe-6">
Expand Down

0 comments on commit 1d4bd4b

Please sign in to comment.