diff --git a/frontend/src/composables/useProjectPage.ts b/frontend/src/composables/useProjectPage.ts index b186adf8..bbfd8f74 100644 --- a/frontend/src/composables/useProjectPage.ts +++ b/frontend/src/composables/useProjectPage.ts @@ -20,7 +20,7 @@ export async function useProjectPage(route: RouteLocationNormalizedLoaded, route } async function savePage(content: string) { - if (!page) return; + if (!page?.value) return; await useInternalApi(`pages/save/${project.id}/${page.value?.id}`, "post", { content, }).catch((e) => handleRequestError(e, "page.new.error.save")); diff --git a/frontend/src/pages/[user]/[project].vue b/frontend/src/pages/[user]/[project].vue index e402aff5..1f6790b4 100644 --- a/frontend/src/pages/[user]/[project].vue +++ b/frontend/src/pages/[user]/[project].vue @@ -1,14 +1,14 @@