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

lolsob-rspec
ThibG 2020-07-08 14:54:47 +02:00 committed by GitHub
parent 7b50afbfdf
commit 06f67cfca0
1 changed files with 1 additions and 1 deletions

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();
}