mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-17 06:00:20 +02:00
Fix credential required
This commit is contained in:
@@ -107,11 +107,11 @@ export const AppMenu = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
</DropdownMenu.Target>
|
</DropdownMenu.Target>
|
||||||
<DropdownMenu.Dropdown>
|
<DropdownMenu.Dropdown>
|
||||||
<DropdownMenu.Label>Server switcher</DropdownMenu.Label>
|
<DropdownMenu.Label>Select a server</DropdownMenu.Label>
|
||||||
{serverList.map((s) => {
|
{serverList.map((s) => {
|
||||||
const requiresCredential = !serverCredentials.some(
|
const requiresCredential =
|
||||||
(c) => c.serverId === s.id && c.enabled
|
s.noCredential &&
|
||||||
);
|
!serverCredentials.some((c) => c.serverId === s.id && c.enabled);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DropdownMenu.Item
|
<DropdownMenu.Item
|
||||||
|
|||||||
Reference in New Issue
Block a user