Skip to content

Commit

Permalink
Fixed error where page breaks when location has no image and show loc…
Browse files Browse the repository at this point in the history
…ation thumb is enabled

Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Jan 17, 2023
1 parent 25cc2c0 commit bec6bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/localbox/box_one.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if ($showLocalThumb)
@if ($showLocalThumb && $locationCurrent->hasMedia('thumb'))
<img
class="img-fluid pull-left"
src="{{ $locationCurrent->getThumb(['width' => $localThumbWidth, 'height' => $localThumbHeight]) }}"
Expand Down

0 comments on commit bec6bc8

Please sign in to comment.