Skip to content

Commit

Permalink
fix: Proper default value for to make mode parameter optional
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <[email protected]>
  • Loading branch information
juliusknorr committed Dec 3, 2024
1 parent 37961d2 commit 47cd7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/TemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private function fetchPreview(
$y,
$a = false,
$forceIcon = true,
string $mode): Http\Response {
string $mode = 'fill'): Http\Response {
if (!($node instanceof Node) || (!$forceIcon && !$this->preview->isAvailable($node))) {
return new DataResponse([], Http::STATUS_NOT_FOUND);
}
Expand Down

0 comments on commit 47cd7c1

Please sign in to comment.