Skip to content

Commit 80a269b

Browse files
authored
Add handling for From field for "LinkColumn" (#2221)
* Add handling for From field for "LinkColumn" * Fix styling
1 parent a99b5b3 commit 80a269b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Views/Columns/LinkColumn.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ public function __construct(string $title, ?string $from = null)
2222
{
2323
parent::__construct($title, $from);
2424

25-
$this->label(fn () => null);
25+
if (! isset($from)) {
26+
$this->label(fn () => null);
27+
}
2628
}
2729

2830
public function getContents(Model $row): null|string|\Illuminate\Support\HtmlString|DataTableConfigurationException|\Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View

0 commit comments

Comments
 (0)