We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f34a91a commit 75a3901Copy full SHA for 75a3901
1 file changed
apps/website/app/api/content/[space_id]/[resource_id]/route.ts
@@ -172,8 +172,8 @@ export const GET = async (
172
}
173
const divideFM = fullContents.text.split("---\n");
174
const firstTextFragment =
175
- divideFM.length > 2 && divideFM[0].trim().length == 0
176
- ? divideFM[2]
+ divideFM.length > 2 && divideFM[0]!.trim().length == 0
+ ? divideFM[2]!
177
: fullContents.text;
178
179
const wrap = `<html><head>
0 commit comments