Skip to content

Commit 0335590

Browse files
author
Akos Kitta
committed
fix: no group for the description if it's missing
Signed-off-by: Akos Kitta <[email protected]>
1 parent fa4626b commit 0335590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arduino-ide-extension/src/browser/widgets/component-list/list-item-renderer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class ListItemRenderer<T extends ArduinoComponent> {
213213
let content = `\n\n${summary}`;
214214
// do not repeat the same info if paragraph and sentence are the same
215215
// example: https://github.com/arduino-libraries/ArduinoCloudThing/blob/8cbcee804e99fed614366c1b87143b1f1634c45f/library.properties#L5-L6
216-
if (description !== summary) {
216+
if (description && description !== summary) {
217217
content += `\n_____\n\n${description}`;
218218
}
219219
return `${title}\n\n____${content}\n\n____\n${TopicLabel}: \`${item.category}\``;

0 commit comments

Comments
 (0)