mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
getting rid of note complement WIP
This commit is contained in:
@@ -142,7 +142,7 @@ class AbstractBeccaEntity {
|
||||
throw new Error(`Cannot set null content to ${this.constructor.primaryKeyName} '${this[this.constructor.primaryKeyName]}'`);
|
||||
}
|
||||
|
||||
if (this.isStringNote()) {
|
||||
if (this.hasStringContent()) {
|
||||
content = content.toString();
|
||||
}
|
||||
else {
|
||||
@@ -246,7 +246,7 @@ class AbstractBeccaEntity {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.isStringNote()) {
|
||||
if (this.hasStringContent()) {
|
||||
return content === null
|
||||
? ""
|
||||
: content.toString("UTF-8");
|
||||
|
||||
Reference in New Issue
Block a user