]> cat aescling's git repositories - mastodon.git/commitdiff
Fix new accent color not refreshing when changing thumbnail for audio uploads (#14264)
authorThibG <thib@sitedethib.com>
Wed, 8 Jul 2020 12:54:47 +0000 (14:54 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Jul 2020 12:54:47 +0000 (14:54 +0200)
app/javascript/mastodon/features/audio/index.js

index 686709ac389e57fede6e1dd0f228975ba52bdb2f..f0cd79873fbc28dea6d1c8f58c2f6da09d7cf132 100644 (file)
@@ -103,7 +103,7 @@ class Audio extends React.PureComponent {
   }
 
   componentDidUpdate (prevProps, prevState) {
-    if (prevProps.src !== this.props.src || this.state.width !== prevState.width || this.state.height !== prevState.height) {
+    if (prevProps.src !== this.props.src || this.state.width !== prevState.width || this.state.height !== prevState.height || prevProps.accentColor !== this.props.accentColor) {
       this._clear();
       this._draw();
     }