Skip to content

Commit def5697

Browse files
committed
Fix build
1 parent ffa17e9 commit def5697

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

web/src/components/EnhancedMarkdown.astro

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ if (!content && Astro.slots.has('default')) {
1414
slotMarkdown = await Astro.slots.render('default');
1515
}
1616
17-
const rawContent = content ?? slotMarkdown;
18-
19-
if (!rawContent) {
20-
throw new Error('EnhancedMarkdown requires content prop or slot content.');
21-
}
17+
const rawContent = content ?? slotMarkdown ?? "";
2218
2319
// We shouldn't this as we're now organizing pages in folders
2420
// TODO let's move away from MediaWiki links in the future

0 commit comments

Comments
 (0)