Handle rendering document references with no compiled text on web app

This commit is contained in:
Debanjum
2025-06-16 16:02:31 -07:00
parent 4ca247f0bc
commit aa7b23c125

View File

@@ -466,7 +466,7 @@ export function constructAllReferences(
if (contextData) {
let localContextReferences = contextData.map((context) => {
if (!context.compiled) {
if (!context.compiled && context.compiled !== "") {
const fileContent = context as unknown as string;
const title = fileContent.split("\n")[0];
const content = fileContent.split("\n").slice(1).join("\n");