File tree Expand file tree Collapse file tree
packages/component/src/Attachment/Text/private Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -247,15 +247,15 @@ function MarkdownTextContent(props: MarkdownTextContentProps) {
247247 const usageInfo = messageThing ?. usageInfo [ 0 ] ;
248248
249249 if ( usageInfo ) {
250- const [ pattern ] = usageInfo . pattern ;
250+ const [ firstPattern ] = usageInfo . pattern ;
251251 const encryptionStatus = ! ! usageInfo . keywords . find ( keyword => keyword === 'encrypted-content' ) ;
252252
253253 return {
254254 color :
255- pattern &&
256- pattern . inDefinedTermSet [ 0 ] === 'https://www.w3.org/TR/css-color-4/' &&
257- pattern . name [ 0 ] === 'color' &&
258- pattern . termCode [ 0 ] ,
255+ firstPattern &&
256+ firstPattern . inDefinedTermSet [ 0 ] === 'https://www.w3.org/TR/css-color-4/' &&
257+ firstPattern . name [ 0 ] === 'color' &&
258+ firstPattern . termCode [ 0 ] ,
259259 isEncrypted : encryptionStatus ,
260260 name : usageInfo . name [ 0 ] ,
261261 title : usageInfo . description [ 0 ]
You can’t perform that action at this time.
0 commit comments