Skip to content

Commit

Permalink
Update Artist.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bastihilger committed May 28, 2021
1 parent b61e3d2 commit d4c5c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Artist.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function url()
public function portfolioImage()
{
if ($this->portfolio_image) {
return nova_cms_image($this->portfolio_image);
return $this->portfolio_image;
}

if ($this->works->count()) {
Expand All @@ -81,7 +81,7 @@ public function portfolioImage()
}

if ($markedWork) {
return nova_cms_image($markedWork->file);
return $markedWork->file;
}
}

Expand Down

0 comments on commit d4c5c74

Please sign in to comment.