From 38a3aa1ad773eaaa0b9c899e0b793b6c1fa01bf0 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Tue, 26 Aug 2025 21:40:53 +0100 Subject: Bug fix on Column --- src/Columns/Column.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Columns/Column.php b/src/Columns/Column.php index f0a65fe..3134ed7 100644 --- a/src/Columns/Column.php +++ b/src/Columns/Column.php @@ -132,13 +132,13 @@ class Column { protected function getContent(Model $row): string { - $content = $this->slotFn === null ? $this->defaultSlot($ow) : ($this->slotFn)($row, $this); + $content = $this->slotFn === null ? $this->defaultSlot($row) : ($this->slotFn)($row, $this); return $this->escape($content); } protected function getAttributes(Model $row): array { - return $this->tdAttributes !== null ? ($this->tdAttributes)($row) : []; + return $this->tdAttributes ? ($this->tdAttributes)($row) : []; } public function view(Model $row): HtmlString -- cgit v1.2.3