mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix new accent color not refreshing when changing thumbnail for audio uploads (#14264)
This commit is contained in:
parent
65e5efbdf4
commit
0d2135a461
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue