mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
Fix merging issues with base after popping the stash
This commit is contained in:
@@ -147,7 +147,6 @@ To get started, just start typing below. You can also type / to see a list of co
|
|||||||
|
|
||||||
function processOnlineReferences(referenceSection, onlineContext) {
|
function processOnlineReferences(referenceSection, onlineContext) {
|
||||||
let numOnlineReferences = 0;
|
let numOnlineReferences = 0;
|
||||||
<<<<<<< Updated upstream
|
|
||||||
for (let subquery in onlineContext) {
|
for (let subquery in onlineContext) {
|
||||||
let onlineReference = onlineContext[subquery];
|
let onlineReference = onlineContext[subquery];
|
||||||
if (onlineReference.organic && onlineReference.organic.length > 0) {
|
if (onlineReference.organic && onlineReference.organic.length > 0) {
|
||||||
@@ -157,27 +156,8 @@ To get started, just start typing below. You can also type / to see a list of co
|
|||||||
let polishedReference = generateOnlineReference(reference, index);
|
let polishedReference = generateOnlineReference(reference, index);
|
||||||
referenceSection.appendChild(polishedReference);
|
referenceSection.appendChild(polishedReference);
|
||||||
}
|
}
|
||||||
||||||| Stash base
|
|
||||||
if (onlineContext.organic && onlineContext.organic.length > 0) {
|
|
||||||
numOnlineReferences += onlineContext.organic.length;
|
|
||||||
for (let index in onlineContext.organic) {
|
|
||||||
let reference = onlineContext.organic[index];
|
|
||||||
let polishedReference = generateOnlineReference(reference, index);
|
|
||||||
referenceSection.appendChild(polishedReference);
|
|
||||||
=======
|
|
||||||
for (let subquery in onlineContext) {
|
|
||||||
let onlineReference = onlineContext[subquery];
|
|
||||||
if (onlineReference.organic && onlineReference.organic.length > 0) {
|
|
||||||
numOnlineReferences += onlineReference.organic.length;
|
|
||||||
for (let index in onlineReference.organic) {
|
|
||||||
let reference = onlineReference.organic[index];
|
|
||||||
let polishedReference = generateOnlineReference(reference, index);
|
|
||||||
referenceSection.appendChild(polishedReference);
|
|
||||||
}
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< Updated upstream
|
|
||||||
if (onlineReference.knowledgeGraph && onlineReference.knowledgeGraph.length > 0) {
|
if (onlineReference.knowledgeGraph && onlineReference.knowledgeGraph.length > 0) {
|
||||||
numOnlineReferences += onlineReference.knowledgeGraph.length;
|
numOnlineReferences += onlineReference.knowledgeGraph.length;
|
||||||
for (let index in onlineReference.knowledgeGraph) {
|
for (let index in onlineReference.knowledgeGraph) {
|
||||||
@@ -185,22 +165,6 @@ To get started, just start typing below. You can also type / to see a list of co
|
|||||||
let polishedReference = generateOnlineReference(reference, index);
|
let polishedReference = generateOnlineReference(reference, index);
|
||||||
referenceSection.appendChild(polishedReference);
|
referenceSection.appendChild(polishedReference);
|
||||||
}
|
}
|
||||||
||||||| Stash base
|
|
||||||
if (onlineContext.knowledgeGraph && onlineContext.knowledgeGraph.length > 0) {
|
|
||||||
numOnlineReferences += onlineContext.knowledgeGraph.length;
|
|
||||||
for (let index in onlineContext.knowledgeGraph) {
|
|
||||||
let reference = onlineContext.knowledgeGraph[index];
|
|
||||||
let polishedReference = generateOnlineReference(reference, index);
|
|
||||||
referenceSection.appendChild(polishedReference);
|
|
||||||
=======
|
|
||||||
if (onlineReference.knowledgeGraph && onlineReference.knowledgeGraph.length > 0) {
|
|
||||||
numOnlineReferences += onlineReference.knowledgeGraph.length;
|
|
||||||
for (let index in onlineReference.knowledgeGraph) {
|
|
||||||
let reference = onlineReference.knowledgeGraph[index];
|
|
||||||
let polishedReference = generateOnlineReference(reference, index);
|
|
||||||
referenceSection.appendChild(polishedReference);
|
|
||||||
}
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (onlineReference.peopleAlsoAsk && onlineReference.peopleAlsoAsk.length > 0) {
|
if (onlineReference.peopleAlsoAsk && onlineReference.peopleAlsoAsk.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user