Browse Source

Fix new accent color not refreshing when changing thumbnail for audio uploads (#14264)

master
ThibG 3 years ago
committed by GitHub
parent
commit
0d2135a461
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/audio/index.js

+ 1
- 1
app/javascript/mastodon/features/audio/index.js View 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();
}

Loading…
Cancel
Save