mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-19 02:10:04 +08:00
Update battachment.ts to fix bug that prevents loading library items
This commit is contained in:
parent
e64e51c078
commit
d9d3613caf
@ -98,7 +98,7 @@ class BAttachment extends AbstractBeccaEntity<BAttachment> {
|
|||||||
|
|
||||||
/** @returns true if the note has string content (not binary) */
|
/** @returns true if the note has string content (not binary) */
|
||||||
hasStringContent(): boolean {
|
hasStringContent(): boolean {
|
||||||
return this.type !== undefined && utils.isStringNote(this.type, this.mime);
|
return this.type utils.isStringNote(this.type, this.mime); // here was !== undefined && utils.isStringNote(this.type, this.mime); I dont know why we need !=undefined. But it filters out canvas libary items
|
||||||
}
|
}
|
||||||
|
|
||||||
isContentAvailable() {
|
isContentAvailable() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user