[FIX] Adds a check to see if the collapsed property exists. (#3973)

* Adds a check to see if the collapsed property exists.

* 👀

* update snapshot

* revert

* revert yarn.lock
This commit is contained in:
Gleidson Daniel Silva 2022-03-28 12:08:18 -03:00 committed by GitHub
parent 902827422b
commit f3cf4f1e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ const Attachments = React.memo(
if (file && file.actions && file.actions.length > 0) { if (file && file.actions && file.actions.length > 0) {
return <AttachedActions attachment={file} />; return <AttachedActions attachment={file} />;
} }
if (file.title) { if (typeof file.collapsed === 'boolean') {
return ( return (
<CollapsibleQuote key={index} index={index} attachment={file} timeFormat={timeFormat} getCustomEmoji={getCustomEmoji} /> <CollapsibleQuote key={index} index={index} attachment={file} timeFormat={timeFormat} getCustomEmoji={getCustomEmoji} />
); );

File diff suppressed because one or more lines are too long