style(typography): remove null check (#30248)

This commit is contained in:
xiejiahe 2021-04-21 16:43:01 +08:00 committed by GitHub
parent 662c7bbf17
commit c2e0cf5154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,7 +473,7 @@ class Base extends React.Component<InternalBlockProps, BaseState> {
}
// show rest content as title on symbol
restContent = restContent?.slice(String(ellipsisContent || '').length);
restContent = restContent.slice(String(ellipsisContent || '').length);
// We move full content to outer element to avoid repeat read the content by accessibility
textNode = (