Skip to content

Commit 58a733d

Browse files
authored
[Bugfix] Capture null speedtest server default to prevent the error (alexjustesen#793)
1 parent e36ff79 commit 58a733d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/Filament/Pages/Settings/GeneralPage.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ public function form(Form $form): Form
102102

103103
protected function getServerLabels(array $values): array
104104
{
105+
if (count($values) && is_null($values[0])) {
106+
return [];
107+
}
108+
105109
return collect($values)->mapWithKeys(function (string $item, int $key) {
106110
return [$item => $item];
107111
})->toArray();

0 commit comments

Comments
 (0)