Skip to content

Commit

Permalink
Update lines.blade.php (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson authored Feb 10, 2023
1 parent 0780a1c commit 02c2671
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@endif

<div class="flex-shrink-0">
@if ($thumbnail = $line->purchasable->getThumbnail())
@if ($thumbnail = $line->purchasable?->getThumbnail())
<x-hub::thumbnail :src="$thumbnail->getUrl('small')" />
@else
<x-hub::icon ref="photograph"
Expand Down Expand Up @@ -94,7 +94,7 @@ class="w-6 mx-1 text-gray-400 -mt-7 group-hover:text-gray-500 xl:mt-0" />
<div class="flex text-xs font-medium text-gray-600">
<p>{{ $line->identifier }}</p>

@if ($line->purchasable->getOptions()->count())
@if ($line->purchasable?->getOptions()?->count())
<dl class="flex before:content-['|'] before:mx-3 before:text-gray-200 space-x-3">
@foreach ($line->purchasable->getOptions() as $option)
<div class="flex gap-0.5">
Expand Down

0 comments on commit 02c2671

Please sign in to comment.