private spliceVideosById (id: number) {
for (const key of Object.keys(this.loadedPages)) {
- const videos = this.loadedPages[ key ]
+ const videos: Video[] = this.loadedPages[ key ]
const index = videos.findIndex(v => v.id === id)
if (index !== -1) {