Tweak key to remount Card on edits
Some checks failed
Chromatic / Run Chromatic (push) Has been cancelled

This commit is contained in:
diondiondion 2025-11-26 09:42:08 +01:00
parent df7828e665
commit 9b0ed71bcb
2 changed files with 2 additions and 2 deletions

View File

@ -538,7 +538,7 @@ class Status extends ImmutablePureComponent {
} else if (status.get('card') && !status.get('quote')) {
media = (
<Card
key={`${status.get('id')}-${status.get('sensitive')}`}
key={`${status.get('id')}-${status.get('edited_at')}`}
card={status.get('card')}
sensitive={status.get('sensitive')}
/>

View File

@ -262,7 +262,7 @@ export const DetailedStatus: React.FC<{
} else if (status.get('card') && !status.get('quote')) {
media = (
<Card
key={`${status.get('id')}-${status.get('sensitive')}`}
key={`${status.get('id')}-${status.get('edited_at')}`}
sensitive={status.get('sensitive')}
card={status.get('card')}
/>