fix: command palette search (#6651)
This commit is contained in:
parent
8bcc295061
commit
8fa45ef9a6
2 changed files with 4 additions and 2 deletions
|
|
@ -28,6 +28,7 @@ export const CommandPaletteSearchResults: React.FC<Props> = (props) => {
|
|||
const section = (results.results as any)[key];
|
||||
const currentSection = commandGroups[key];
|
||||
|
||||
if (!currentSection) return null;
|
||||
if (section.length > 0) {
|
||||
return (
|
||||
<Command.Group key={key} heading={`${currentSection.title} search`}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue