diff --git a/components/search-command.tsx b/components/search-command.tsx index e8728b3..d8ec490 100644 --- a/components/search-command.tsx +++ b/components/search-command.tsx @@ -92,24 +92,27 @@ export function SearchCommand({ open, onOpenChange }: SearchCommandProps) { onValueChange={setQuery} /> - Sonuç bulunamadı. - {filteredGroups.map((group, index) => ( -
- {index > 0 && } - - {group.items.map((item) => ( - } - onClick={() => handleCommandSelect(item)} - className="cursor-pointer" - > - {item.label} - - ))} - -
- ))} + {filteredGroups.length === 0 ? ( + Sonuç bulunamadı. + ) : ( + filteredGroups.map((group, index) => ( +
+ {index > 0 && } + + {group.items.map((item) => ( + } + onClick={() => handleCommandSelect(item)} + className="cursor-pointer" + > + {item.label} + + ))} + +
+ )) + )}
Hızlıca açmak için {shortcut} kullan