[Glitch] Fix crash when rendering remote post with collection card
Port 658ad9f57e46b37a2eef033578ddfb05d2ccb3ab to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
0da13f7632
commit
baceb78193
@ -650,7 +650,7 @@ class Status extends ImmutablePureComponent {
|
||||
status.get('tagged_collections')
|
||||
).find((item) => compareUrls(item.get('url'), cardUrl));
|
||||
if (taggedCollection) {
|
||||
media.push(<CollectionPreviewCard collection={taggedCollection} />);
|
||||
media.push(<CollectionPreviewCard collection={taggedCollection.toJS()} />);
|
||||
} else {
|
||||
media.push(
|
||||
<Card
|
||||
|
||||
@ -304,7 +304,7 @@ export const DetailedStatus: React.FC<{
|
||||
);
|
||||
|
||||
if (taggedCollection) {
|
||||
media = <CollectionPreviewCard collection={taggedCollection} />;
|
||||
media = <CollectionPreviewCard collection={taggedCollection.toJS()} />;
|
||||
} else {
|
||||
media = (
|
||||
<Card
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user