Fix thumbnail update

pull/4548/head
Chocobozzz 2021-11-10 15:13:56 +01:00
parent a2a81f5a7f
commit 17ddba4950
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 3 deletions

View File

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