Skip to content

Commit a61f6a5

Browse files
Fix: Attempt to read property "svg_flag" on null (#349)
* Fix: Attempt to read property "svg_flag" on null
1 parent fb4438a commit a61f6a5

File tree

1 file changed

+2
-0
lines changed
  • packages/admin/resources/views/livewire/pages/settings/locations

1 file changed

+2
-0
lines changed

packages/admin/resources/views/livewire/pages/settings/locations/index.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class="truncate text-sm font-medium leading-5 text-primary-600 dark:text-primary
6161
</div>
6262
<div class="mt-2 sm:flex sm:justify-between">
6363
<div class="sm:flex sm:gap-x-4">
64+
@if ($inventory->country)
6465
<div class="flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400">
6566
<img
6667
src="{{ $inventory->country->svg_flag }}"
@@ -69,6 +70,7 @@ class="size-5 shrink-0 rounded-full object-cover"
6970
/>
7071
{{ $inventory->country->name }}
7172
</div>
73+
@endif
7274
<div class="mt-2 flex gap-2 items-center text-sm text-gray-500 dark:text-gray-400 sm:mt-0">
7375
<x-untitledui-marker-pin-02
7476
class="size-5 shrink-0 text-gray-400 dark:text-gray-500"

0 commit comments

Comments
 (0)