mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Remove unused loadLibraryFilterData func
This commit is contained in:
parent
006241163b
commit
34cb7a4d02
@ -166,22 +166,6 @@ export const actions = {
|
||||
commit('set', [])
|
||||
})
|
||||
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