mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-01 18:31:31 +08:00
Update note_content_fulltext.ts
This commit is contained in:
parent
e63d3489b0
commit
cf8ec5a286
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user