Fix error accessing post with collection card
Some checks failed
Chromatic / Check for relevant changes (push) Has been cancelled
Chromatic / Run Chromatic (push) Has been cancelled

This commit is contained in:
diondiondion 2026-05-08 10:28:23 +02:00
parent e41736629a
commit 5f3002f84d
2 changed files with 2 additions and 2 deletions

View File

@ -556,7 +556,7 @@ class Status extends ImmutablePureComponent {
).find((item) => compareUrls(item.get('url'), cardUrl));
if (taggedCollection) {
media = <CollectionPreviewCard collection={taggedCollection} />;
media = <CollectionPreviewCard collection={taggedCollection.toJS()} />;
} else {
media = (
<Card

View File

@ -272,7 +272,7 @@ export const DetailedStatus: React.FC<{
);
if (taggedCollection) {
media = <CollectionPreviewCard collection={taggedCollection} />;
media = <CollectionPreviewCard collection={taggedCollection.toJS()} />;
} else {
media = (
<Card