[Glitch] Fix new accent color not refreshing when changing thumbnail for audio uploads

Port 0d2135a461 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
master
ThibG 5 years ago committed by Thibaut Girka
parent b27eecdbfc
commit 11446be6d1
  1. 2
      app/javascript/flavours/glitch/features/audio/index.js

@ -102,7 +102,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