fix: double header rendering in CREATE prayer nodes
This commit is contained in:
1 parent
2f0d9050f8
commit
f7a5c43e55
1 file changed
+1
@@ -357,6 +357,7 @@ export async function assembleService(
|
|||||||
.map(n => String(str((n as Record<string, unknown>).value) ?? '').replace(/\n/g, ' '))
|
.map(n => String(str((n as Record<string, unknown>).value) ?? '').replace(/\n/g, ' '))
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join('<br>') || '';
|
.join('<br>') || '';
|
||||||
|
header = ''; // Prevent double rendering in the fallthrough below
|
||||||
} else {
|
} else {
|
||||||
// No structured nodes — use fetchText
|
// No structured nodes — use fetchText
|
||||||
text = await ctx.fetchText(`Services/CommonPrayers/${what}.xml`) ?? '';
|
text = await ctx.fetchText(`Services/CommonPrayers/${what}.xml`) ?? '';
|
||||||
|
|||||||
Reference in new issue
Block a user