Skip to content

Commit

Permalink
issues/5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvenga committed Dec 16, 2023
1 parent 9b84bb2 commit 71bacc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/MediaLibrary.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function resolvePreview(): View|string
if ($this->isRawMode()) {
return $this->isMultiple() ?
implode(';', $this->value->map(fn($media): string => $media->getFullUrl())->toArray())
: $this->value?->getFullUrl();
: ($this->value?->getFullUrl() ?? '');
}

return view(
Expand Down

0 comments on commit 71bacc9

Please sign in to comment.