Add error handling for search filters

This commit is contained in:
Preston 2020-10-21 11:23:40 -04:00
parent a7cd21b7ad
commit 351a6a3992
1 changed files with 6 additions and 1 deletions

View File

@ -49,6 +49,9 @@ const actions = {
}).finally(() => {
commit('toggleIsYtSearchRunning')
})
}).catch((err) => {
console.log(err)
reject(err)
})
} else {
ytsr(payload.query, payload.options).then((result) => {
@ -66,7 +69,7 @@ const actions = {
},
ytSearchGetFilters ({ rootState }, payload) {
return new Promise((resolve) => {
return new Promise((resolve, reject) => {
let filter = payload.query
let searchSettings = payload.searchSettings
@ -108,6 +111,8 @@ const actions = {
})
})
})
}).catch((err) => {
reject(err)
})
})
},