mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 05:39:12 +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) {
|
if (contextData) {
|
||||||
let localContextReferences = contextData.map((context) => {
|
let localContextReferences = contextData.map((context) => {
|
||||||
if (!context.compiled) {
|
if (!context.compiled && context.compiled !== "") {
|
||||||
const fileContent = context as unknown as string;
|
const fileContent = context as unknown as string;
|
||||||
const title = fileContent.split("\n")[0];
|
const title = fileContent.split("\n")[0];
|
||||||
const content = fileContent.split("\n").slice(1).join("\n");
|
const content = fileContent.split("\n").slice(1).join("\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user