]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix reuse of detailed status components
authorThibG <thib@sitedethib.com>
Mon, 6 Jan 2020 17:22:17 +0000 (18:22 +0100)
committerThibaut Girka <thib@sitedethib.com>
Tue, 7 Jan 2020 15:30:53 +0000 (16:30 +0100)
Port 12a9813a0cc269d7b7c72095e279f70ddb7bec6e to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/status/index.js

index 322f924773df460fc5d9fbfb9e75626b2ef7aadb..411d2a88d478b3209ff06e57529df9f7860c4f17 100644 (file)
@@ -568,6 +568,7 @@ class Status extends ImmutablePureComponent {
             <HotKeys handlers={handlers}>
               <div className='focusable' tabIndex='0' aria-label={textForScreenReader(intl, status, false, !status.get('hidden'))}>
                 <DetailedStatus
+                  key={`details-${status.get('id')}`}
                   status={status}
                   settings={settings}
                   onOpenVideo={this.handleOpenVideo}
@@ -580,6 +581,7 @@ class Status extends ImmutablePureComponent {
                 />
 
                 <ActionBar
+                  key={`action-bar-${status.get('id')}`}
                   status={status}
                   onReply={this.handleReplyClick}
                   onFavourite={this.handleFavouriteClick}