mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Handle rendering document references with no compiled text on web app
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user