We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e09f40d commit 11aadc0Copy full SHA for 11aadc0
packages/jupyter-chat/src/components/input/use-chat-commands.tsx
@@ -144,8 +144,14 @@ export function useChatCommands(
144
<Box key={key} component="li" {...listItemProps}>
145
{commandIcon}
146
<p className="jp-chat-command-name">{command.name}</p>
147
- <span> - </span>
148
- <p className="jp-chat-command-description">{command.description}</p>
+ {command.description && (
+ <>
149
+ <span> - </span>
150
+ <p className="jp-chat-command-description">
151
+ {command.description}
152
+ </p>
153
+ </>
154
+ )}
155
</Box>
156
);
157
},
0 commit comments