diff options
author | ThibG <thib@sitedethib.com> | 2020-07-08 14:54:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 14:54:47 +0200 |
commit | 0d2135a46172fd6931f757ef083ad99f4522081d (patch) | |
tree | d23b63b9a29c1fdf5b55f0fe3810e4d604e75416 /app | |
parent | 65e5efbdf4bc3c70dbf772e84d02255d497cc7b9 (diff) |
Fix new accent color not refreshing when changing thumbnail for audio uploads (#14264)
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/features/audio/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/audio/index.js b/app/javascript/mastodon/features/audio/index.js index 686709ac3..f0cd79873 100644 --- a/app/javascript/mastodon/features/audio/index.js +++ b/app/javascript/mastodon/features/audio/index.js @@ -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(); } |