We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b869f68 commit 38c6c13Copy full SHA for 38c6c13
src/Helpers.php
@@ -202,6 +202,10 @@ public static function getServerTitle(array $server): string {
202
* @param array<int, array<string, int|string>> $servers
203
*/
204
public static function serverSelector(Template $template, array $servers, int $selected): string {
205
+ if (count($servers) === 1) {
206
+ return '';
207
+ }
208
+
209
$options = array_map(static fn ($server): string => self::getServerTitle($server), $servers);
210
211
return $template->render('components/select', [
0 commit comments