patch: fixing command bar being unclickable

This commit is contained in:
dvelo 2024-08-11 22:53:36 -05:00
parent fc0767cc86
commit 8973d6a609

@ -198,13 +198,13 @@ export function ServerCommandBar() {
<CommandGroup heading="Server Actions"> <CommandGroup heading="Server Actions">
<CommandItem <CommandItem
onClick={() => router.push("/server/" + serverName + "/")} onSelect={() => router.push("/server/" + serverName + "/")}
> >
<Server className="mr-2 h-4 w-4" /> <Server className="mr-2 h-4 w-4" />
Open Server Page Open Server Page
</CommandItem> </CommandItem>
<CommandItem <CommandItem
onClick={() => { onSelect={() => {
favoriteServer(serverName).then(() => toast.success("Done!")); favoriteServer(serverName).then(() => toast.success("Done!"));
}} }}
> >
@ -212,7 +212,7 @@ export function ServerCommandBar() {
Favorite Server Favorite Server
</CommandItem> </CommandItem>
<CommandItem <CommandItem
onClick={() => router.push("/server/" + serverName + "/statistics")} onSelect={() => router.push("/server/" + serverName + "/statistics")}
> >
<Database className="mr-2 h-4 w-4" /> <Database className="mr-2 h-4 w-4" />
See Statistics See Statistics