We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c785d1 commit e2f2e4cCopy full SHA for e2f2e4c
1 file changed
src/js/components/ManageMenu/CommunityCloud/SearchResults.tsx
@@ -56,11 +56,13 @@ const CloudSnippetDetails: React.FC<CloudSnippetDetailsProps> = ({ snippet, setI
56
: null}
57
</div>
58
59
- <p className="cloud-snippet-description">
60
- {snippet.description.length > MAX_DESCRIPTION_LENGTH
61
- ? `${snippet.description.slice(0, MAX_DESCRIPTION_LENGTH)}…`
62
- : snippet.description}
63
- </p>
+ {snippet.description && (
+ <p className="cloud-snippet-description">
+ {snippet.description.length > MAX_DESCRIPTION_LENGTH
+ ? `${snippet.description.slice(0, MAX_DESCRIPTION_LENGTH)}…`
+ : snippet.description}
64
+ </p>
65
+ )}
66
67
<p className="cloud-snippet-author">
68
{_x('by ', 'snippet author', 'code-snippets')}
0 commit comments