Skip to content

Commit 2fb4a78

Browse files
fix: Use Str::label to auto-label searches
1 parent fe995fb commit 2fb4a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Panel/State.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function searches(): array
240240
foreach ($area->searches() as $id => $params) {
241241
$searches[$id] = [
242242
'icon' => $params['icon'] ?? 'search',
243-
'label' => $params['label'] ?? Str::ucfirst($id),
243+
'label' => $params['label'] ?? Str::label($id),
244244
'id' => $id
245245
];
246246
}

0 commit comments

Comments
 (0)