wrong fetcher
This commit is contained in:
parent
cb20672f0b
commit
ee42d4095a
2 changed files with 4 additions and 4 deletions
|
|
@ -27,8 +27,8 @@ export const useBookmarkFoldersStore = defineStore('bookmarkFolders', {
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
startFetching() {
|
startFetching() {
|
||||||
promiseInterval(() => {
|
this.fetcher = promiseInterval(() => {
|
||||||
this.fetcher = fetchBookmarkFolders({
|
fetchBookmarkFolders({
|
||||||
credentials: useOAuthStore().token,
|
credentials: useOAuthStore().token,
|
||||||
})
|
})
|
||||||
.then(({ data: folders }) => this.setBookmarkFolders(folders))
|
.then(({ data: folders }) => this.setBookmarkFolders(folders))
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,8 @@ export const useListsStore = defineStore('lists', {
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
startFetching() {
|
startFetching() {
|
||||||
promiseInterval(() => {
|
this.fetcher = promiseInterval(() => {
|
||||||
this.fetcher = fetchLists({
|
fetchLists({
|
||||||
credentials: useOAuthStore().token,
|
credentials: useOAuthStore().token,
|
||||||
})
|
})
|
||||||
.then(({ data: lists }) => this.setLists(lists))
|
.then(({ data: lists }) => this.setLists(lists))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue