mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-01 13:04:52 +02:00
Fix remove media progress use libraryItemId
This commit is contained in:
parent
174dac8fd4
commit
8df05896b5
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ class User {
|
||||||
}
|
}
|
||||||
|
|
||||||
removeMediaProgress(libraryItemId) {
|
removeMediaProgress(libraryItemId) {
|
||||||
if (!this.mediaProgress.some(lip => lip.id == libraryItemId)) return false
|
if (!this.mediaProgress.some(lip => lip.libraryItemId == libraryItemId)) return false
|
||||||
this.mediaProgress = this.mediaProgress.filter(lip => lip.libraryItemId != libraryItemId)
|
this.mediaProgress = this.mediaProgress.filter(lip => lip.libraryItemId != libraryItemId)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue