瀏覽代碼

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

ThibG 3 年之前
父節點
當前提交
0d2135a461
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/javascript/mastodon/features/audio/index.js

+ 1 - 1
app/javascript/mastodon/features/audio/index.js

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