mirror of
https://github.com/zadam/trilium.git
synced 2026-01-16 11:34:25 +01:00
chore(core): fix type error in getFlatText
This commit is contained in:
parent
544c52931c
commit
a15b84b4e5
@ -775,7 +775,7 @@ class BNote extends AbstractBeccaEntity<BNote> {
|
||||
*
|
||||
* @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<BNote> {
|
||||
this.__flatTextCache = utils.normalize(this.__flatTextCache);
|
||||
}
|
||||
|
||||
return this.__flatTextCache;
|
||||
return this.__flatTextCache as string;
|
||||
}
|
||||
|
||||
invalidateThisCache() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user