mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-09-11 21:47:09 +03:00
Fix thumbnail update
This commit is contained in:
parent
a2a81f5a7f
commit
17ddba4950
@ -1576,9 +1576,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
|
||||
|
||||
if (Array.isArray(this.Thumbnails) === false) this.Thumbnails = []
|
||||
|
||||
// Already have this thumbnail, skip
|
||||
if (this.Thumbnails.find(t => t.id === savedThumbnail.id)) return
|
||||
|
||||
this.Thumbnails = this.Thumbnails.filter(t => t.id !== savedThumbnail.id)
|
||||
this.Thumbnails.push(savedThumbnail)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user