diff options
author | ThibG <thib@sitedethib.com> | 2020-07-08 14:54:47 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-07-08 15:26:28 +0200 |
commit | 11446be6d13f6d4748227a329dcc75c5c78c915d (patch) | |
tree | b5ff100059ab31e064c33f5df8f33301febb5609 /app | |
parent | b27eecdbfcebc46c8e29c6b834b9c8b25ddfa751 (diff) |
[Glitch] Fix new accent color not refreshing when changing thumbnail for audio uploads
Port 0d2135a46172fd6931f757ef083ad99f4522081d to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/features/audio/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/audio/index.js b/app/javascript/flavours/glitch/features/audio/index.js index 181d8e980..d833e0fe9 100644 --- a/app/javascript/flavours/glitch/features/audio/index.js +++ b/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(); } |