mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-18 06:38:31 +01:00
Fix remove media progress use libraryItemId
This commit is contained in:
1 parent
174dac8fd4
commit
8df05896b5
1 file changed
+1
-1
@@ -270,7 +270,7 @@ class User {
|
||||
}
|
||||
|
||||
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)
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user