Fix composable issue
This commit is contained in:
4
client/stores/notion_pages.js
vendored
4
client/stores/notion_pages.js
vendored
@@ -9,8 +9,8 @@ export const useNotionPagesStore = defineStore('notion_pages', () => {
|
||||
contentStore.startLoading()
|
||||
|
||||
const apiUrl = opnformConfig.notion.worker
|
||||
return useOpnApi(`${apiUrl}/page/${pageId}`)
|
||||
.then(({data})=> {
|
||||
return useFetch(`${apiUrl}/page/${pageId}`)
|
||||
.then(({data, error})=> {
|
||||
const val = data.value
|
||||
val['id'] = pageId
|
||||
contentStore.save(val)
|
||||
|
||||
Reference in New Issue
Block a user