mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-04 18:15:01 +02:00
Fix:Prevent pressing download buttons twice causing crash in iOS
This commit is contained in:
parent
023c83ee78
commit
4dd67adcab
5 changed files with 48 additions and 32 deletions
|
@ -46,7 +46,8 @@ export const state = () => ({
|
|||
export const getters = {
|
||||
getDownloadItem: state => (libraryItemId, episodeId = null) => {
|
||||
return state.itemDownloads.find(i => {
|
||||
if (episodeId && !i.episodes.some(e => e.id == episodeId)) return false
|
||||
// if (episodeId && !i.episodes.some(e => e.id == episodeId)) return false
|
||||
if (episodeId && i.episodeId !== episodeId) return false
|
||||
return i.libraryItemId == libraryItemId
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue