mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
Tweak key to remount Card on edits
Some checks failed
Chromatic / Run Chromatic (push) Has been cancelled
Some checks failed
Chromatic / Run Chromatic (push) Has been cancelled
This commit is contained in:
parent
df7828e665
commit
9b0ed71bcb
|
|
@ -538,7 +538,7 @@ class Status extends ImmutablePureComponent {
|
||||||
} else if (status.get('card') && !status.get('quote')) {
|
} else if (status.get('card') && !status.get('quote')) {
|
||||||
media = (
|
media = (
|
||||||
<Card
|
<Card
|
||||||
key={`${status.get('id')}-${status.get('sensitive')}`}
|
key={`${status.get('id')}-${status.get('edited_at')}`}
|
||||||
card={status.get('card')}
|
card={status.get('card')}
|
||||||
sensitive={status.get('sensitive')}
|
sensitive={status.get('sensitive')}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -262,7 +262,7 @@ export const DetailedStatus: React.FC<{
|
||||||
} else if (status.get('card') && !status.get('quote')) {
|
} else if (status.get('card') && !status.get('quote')) {
|
||||||
media = (
|
media = (
|
||||||
<Card
|
<Card
|
||||||
key={`${status.get('id')}-${status.get('sensitive')}`}
|
key={`${status.get('id')}-${status.get('edited_at')}`}
|
||||||
sensitive={status.get('sensitive')}
|
sensitive={status.get('sensitive')}
|
||||||
card={status.get('card')}
|
card={status.get('card')}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user