refactor promisedRequest to always return whole response
This commit is contained in:
parent
c81813064b
commit
1ca0ffb1f0
25 changed files with 352 additions and 327 deletions
|
|
@ -38,10 +38,7 @@ export const useListsStore = defineStore('lists', {
|
|||
this.fetcher = fetchLists({
|
||||
credentials: useOAuthStore().token,
|
||||
})
|
||||
.then(
|
||||
(lists) => this.setLists(lists),
|
||||
(rej) => console.error(rej),
|
||||
)
|
||||
.then(({ data: lists }) => this.setLists(lists))
|
||||
.catch((e) => {
|
||||
console.error(e)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue