[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:
parent
902827422b
commit
f3cf4f1e7f
|
@ -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
Loading…
Reference in New Issue