From 00ecdfbb1703d3afa55d2eb3900ba1034a893ff7 Mon Sep 17 00:00:00 2001 From: Sammy Hass Date: Thu, 25 May 2023 17:57:49 +0100 Subject: [PATCH] fix(docs): command menu unresponsive after no results (#455) --- apps/www/components/command-menu.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/www/components/command-menu.tsx b/apps/www/components/command-menu.tsx index 768ebe703f..07605e056d 100644 --- a/apps/www/components/command-menu.tsx +++ b/apps/www/components/command-menu.tsx @@ -3,7 +3,6 @@ import * as React from "react" import { useRouter } from "next/navigation" import { DialogProps } from "@radix-ui/react-alert-dialog" -import { allDocs } from "contentlayer/generated" import { Circle, File, Laptop, Moon, SunMedium } from "lucide-react" import { useTheme } from "next-themes" @@ -68,6 +67,7 @@ export function CommandMenu({ ...props }: DialogProps) { .map((navItem) => ( { runCommand(() => router.push(navItem.href as string)) }} @@ -82,6 +82,7 @@ export function CommandMenu({ ...props }: DialogProps) { {group.items.map((navItem) => ( { runCommand(() => router.push(navItem.href as string)) }}