mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-22 00:07:52 +01:00
Remove unused loadLibraryFilterData func
This commit is contained in:
parent
006241163b
commit
34cb7a4d02
@ -166,22 +166,6 @@ export const actions = {
|
|||||||
commit('set', [])
|
commit('set', [])
|
||||||
})
|
})
|
||||||
return true
|
return true
|
||||||
},
|
|
||||||
loadLibraryFilterData({ state, commit, rootState }) {
|
|
||||||
if (!rootState.user || !rootState.user.user) {
|
|
||||||
console.error('libraries/loadLibraryFilterData - User not set')
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
this.$axios
|
|
||||||
.$get(`/api/libraries/${state.currentLibraryId}/filterdata`)
|
|
||||||
.then((data) => {
|
|
||||||
commit('setLibraryFilterData', data)
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
console.error('Failed', error)
|
|
||||||
commit('setLibraryFilterData', null)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user