Skip to content

Commit

Permalink
Fix bard undefined href error
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksleight committed Jan 14, 2025
1 parent bcd529b commit 06256f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Fieldtypes/Bard/LinkMark.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ public function addAttributes()
return [
'href' => [
'renderHTML' => function ($attributes) {
$href = $attributes->href;
if (! isset($href)) {
if (! isset($attributes->href)) {
return null;
}

return [
'href' => $this->convertHref($href) ?? '',
'href' => $this->convertHref($attributes->href) ?? '',
];
},
],
Expand Down

0 comments on commit 06256f9

Please sign in to comment.