diff --git a/scripts/patch-endpoint-posts-content-field-object.mjs b/scripts/patch-endpoint-posts-content-field-object.mjs index 37bc02c3..c1c634d7 100644 --- a/scripts/patch-endpoint-posts-content-field-object.mjs +++ b/scripts/patch-endpoint-posts-content-field-object.mjs @@ -24,7 +24,7 @@ const newSnippet = `{#- ${marker} -#} {%- set _contentFv = fieldData("content").value -%} {{ textarea({ name: "content", - value: properties.content.text or (_contentFv.text if _contentFv is mapping else _contentFv) or "",`; + value: properties.content.text or _contentFv.text or (_contentFv if _contentFv is string else ""),`; async function exists(p) { try { await access(p); return true; } catch { return false; }