docs(nxdev): show package description as fallback (#12081)

This commit is contained in:
Benjamin Cabanes 2022-09-19 13:50:05 -04:00 committed by GitHub
parent e34218b108
commit 32f6d3a056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ export function PackageSchemaList({
},
get markdown(): ReactNode {
return renderMarkdown({
content: this.pkg.readme.content,
content: this.pkg.readme.content || this.pkg.description,
filePath: this.pkg.readme.filePath,
data: {},
});