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 = []
|
if (Array.isArray(this.Thumbnails) === false) this.Thumbnails = []
|
||||||
|
|
||||||
// Already have this thumbnail, skip
|
this.Thumbnails = this.Thumbnails.filter(t => t.id !== savedThumbnail.id)
|
||||||
if (this.Thumbnails.find(t => t.id === savedThumbnail.id)) return
|
|
||||||
|
|
||||||
this.Thumbnails.push(savedThumbnail)
|
this.Thumbnails.push(savedThumbnail)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue