Skip to content

Commit

Permalink
Update HasIcon.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Oct 17, 2024
1 parent e0cdb68 commit 2f61f71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/tables/src/Columns/Concerns/HasIcon.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public function getIconPosition(): IconPosition
{
$position = $this->evaluate($this->iconPosition);

if (blank($position)) {
return IconPosition::Before;
}

return IconPosition::tryFrom($position) ?? IconPosition::Before;
}
}

0 comments on commit 2f61f71

Please sign in to comment.