Skip to content

Commit

Permalink
Fix new accent color not refreshing when changing thumbnail for audio…
Browse files Browse the repository at this point in the history
… uploads (mastodon#14264)
  • Loading branch information
ClearlyClaire authored and Mage committed Jan 14, 2022
1 parent 99c6b96 commit 015a0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/features/audio/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 015a0a0

Please sign in to comment.