Skip to content

Commit

Permalink
fix: changed default value for metrics to be empty string to prevent …
Browse files Browse the repository at this point in the history
…modal layout error (#2787)
  • Loading branch information
czernika authored Jan 10, 2024
1 parent fce08f4 commit e0c7d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Screen/Layouts/Metric.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function build(Repository $repository)
return;
}

$metrics = collect($this->labels)->map(fn (string $value) => $repository->getContent($value, []));
$metrics = collect($this->labels)->map(fn (string $value) => $repository->getContent($value, ''));

return view($this->template, [
'title' => $this->title,
Expand Down

0 comments on commit e0c7d9e

Please sign in to comment.