Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
keep the most recent fix from master
Browse files Browse the repository at this point in the history
  • Loading branch information
ragingdave committed Oct 11, 2018
1 parent 2537233 commit 1f2f9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/MediaField.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function fillAttributeFromRequest(NovaRequest $request, $requestAttrib
*/
protected function resolveAttribute($resource, $attribute)
{
$customProperties = $this->mediaLibraryMethods['withCustomProperties'] ?? [];
$customProperties = $this->mediaLibraryMethods['withCustomProperties'] ?? '';
$media = $resource->getMedia($this->mediaCollection);

if (!empty($customProperties)) {
Expand Down

0 comments on commit 1f2f9c2

Please sign in to comment.