Skip to content

Commit

Permalink
Merge branch 'main' into shift-ci-v10.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjustesen authored Sep 20, 2023
2 parents 1a0905f + f3b51bb commit 7a770c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Filament/Pages/Settings/GeneralPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ public function form(Form $form): Form

protected function getServerLabels(array $values): array
{
if (count($values) && is_null($values[0])) {
return [];
}

return collect($values)->mapWithKeys(function (string $item, int $key) {
return [$item => $item];
})->toArray();
Expand Down Expand Up @@ -129,7 +133,7 @@ protected function getServerSearchOptions(string $search): array
return collect([
[
'id' => $search,
'name' => 'Unknown server',
'name' => $search.' (Manually entered server)',
],
])->pluck('name', 'id')->toArray();
}
Expand Down

0 comments on commit 7a770c5

Please sign in to comment.