1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-29 00:57:50 +02:00

Using optional chaining on the description to solve search bug (#903)

This commit is contained in:
Jamie Hewitt 2021-10-05 14:19:51 +03:00 committed by GitHub
parent 72a447b3c5
commit 32688892bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ const AssetTeaser: React.FC<AssetTeaserProps> = ({
<div className={styles.content}>
<Dotdotdot tagName="p" clamp={3}>
{removeMarkdown(
attributes?.additionalInformation?.description.substring(
attributes?.additionalInformation?.description?.substring(
0,
300
) || ''