From a15b84b4e539d5d593d993c77c9c53755c199adf Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 6 Jan 2026 11:56:52 +0200 Subject: [PATCH] chore(core): fix type error in getFlatText --- packages/trilium-core/src/becca/entities/bnote.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/trilium-core/src/becca/entities/bnote.ts b/packages/trilium-core/src/becca/entities/bnote.ts index ea3c60803..3d9a9fe2c 100644 --- a/packages/trilium-core/src/becca/entities/bnote.ts +++ b/packages/trilium-core/src/becca/entities/bnote.ts @@ -775,7 +775,7 @@ class BNote extends AbstractBeccaEntity { * * @returns - returns flattened textual representation of note, prefixes and attributes */ - getFlatText() { + getFlatText(): string { if (!this.__flatTextCache) { this.__flatTextCache = `${this.noteId} ${this.type} ${this.mime} `; @@ -801,7 +801,7 @@ class BNote extends AbstractBeccaEntity { this.__flatTextCache = utils.normalize(this.__flatTextCache); } - return this.__flatTextCache; + return this.__flatTextCache as string; } invalidateThisCache() {