From 527f8abfa2333742c91f41e76b5bdb896afcc9b7 Mon Sep 17 00:00:00 2001 From: ThibG Date: Wed, 8 Jul 2020 14:54:47 +0200 Subject: [PATCH] [Glitch] Fix new accent color not refreshing when changing thumbnail for audio uploads Port 06f67cfca081054b87f6a9f8d177898fd5a67f1d to glitch-soc Signed-off-by: Thibaut Girka --- app/javascript/flavours/glitch/features/audio/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/audio/index.js b/app/javascript/flavours/glitch/features/audio/index.js index 181d8e980d..d833e0fe93 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(); }