Skip to content

Build your personal knowledge base with Trilium Notes

Update note_content_fulltext.ts

CobriMediaJuliencf8ec5a28673
diff --git a/src/services/search/expressions/note_content_fulltext.ts b/src/services/search/expressions/note_content_fulltext.ts
index 546191a3c8..11a8c09f34 100644
--- a/src/services/search/expressions/note_content_fulltext.ts
+++ b/src/services/search/expressions/note_content_fulltext.ts
@@ -134,11 +134,8 @@ class NoteContentFulltextExp extends Expression {
content = content.replace(/ /g, ' ');
}
else if (type === 'mindMap' && mime === 'application/json') {
- console.log("mindMap", content);
let mindMapcontent = JSON.parse (content);
- console.log("mindMap", mindMapcontent);
let topic = mindMapcontent.nodedata.topic;
- console.log("topic22", topic);
content = utils.normalize(topic.toString());
}
else if (type === 'canvas' && mime === 'application/json') {
@@ -154,7 +151,6 @@ class NoteContentFulltextExp extends Expression {
const texts = elements
.filter((element: Element) => element.type === 'text' && element.text) // Filter for 'text' type elements with a 'text' property
.map((element: Element) => element.text!); // Use `!` to assert `text` is defined after filtering
- console.log(texts)
}