Skip to content

Commit

Permalink
Merge pull request #16 from haringsrob/main
Browse files Browse the repository at this point in the history
Ensure it does not break with null values.
  • Loading branch information
andreia authored Sep 24, 2023
2 parents 42a6123 + 2ce4388 commit ba5518b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/tables/columns/key-value.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="my-2 text-sm font-medium tracking-tight">
@foreach($getState() as $key => $value)
@foreach($getState() ?? [] as $key => $value)
<span class="inline-block p-1 mr-1 rounded-md whitespace-normal text-gray-700 dark:text-gray-200 bg-gray-500/10">
{{ $key }}
</span>
Expand Down

0 comments on commit ba5518b

Please sign in to comment.