diff --git a/src/interface/web/app/components/referencePanel/referencePanel.tsx b/src/interface/web/app/components/referencePanel/referencePanel.tsx index 8711809f..5dc3ef81 100644 --- a/src/interface/web/app/components/referencePanel/referencePanel.tsx +++ b/src/interface/web/app/components/referencePanel/referencePanel.tsx @@ -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");