Skip to content

Commit

Permalink
feature: wrap in value so closures can be used
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangjchandler committed Mar 2, 2021
1 parent 77e8524 commit 05c1bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tables/src/Columns/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getValue($record, $attribute = null)
$value = parent::getValue($record, $attribute);

if ($value === null) {
return $this->default;
return value($this->default);
}

if ($this->formatUsing) {
Expand Down

0 comments on commit 05c1bc4

Please sign in to comment.