From b034f5d19168b4593c65e78a2ad463b432a13642 Mon Sep 17 00:00:00 2001 From: "Gabriel Mowses (Mouse)" Date: Thu, 2 Apr 2026 18:15:40 -0300 Subject: [PATCH] fix: fallback content to render before save to prevent null trim error --- ux/src/stores/page.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ux/src/stores/page.js b/ux/src/stores/page.js index c0919352..3b158c7f 100644 --- a/ux/src/stores/page.js +++ b/ux/src/stores/page.js @@ -537,6 +537,15 @@ export const usePageStore = defineStore('page', { async pageSave () { const editorStore = useEditorStore() const siteStore = useSiteStore() + + // Ensure content is not null before saving + if (!this.content && this.render) { + this.content = this.render + } + if (!this.content) { + this.content = '

' + } + try { if (editorStore.mode === 'create') { const resp = await APOLLO_CLIENT.mutate({