mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
yet another refactoring of working with note's payload/content
This commit is contained in:
@@ -26,7 +26,13 @@ class Entity {
|
||||
|
||||
this.hash = this.generateHash();
|
||||
|
||||
this.isChanged = origHash !== this.hash;
|
||||
if (this.forcedChange) {
|
||||
this.isChanged = true;
|
||||
delete this.forcedChange;
|
||||
}
|
||||
else {
|
||||
this.isChanged = origHash !== this.hash;
|
||||
}
|
||||
}
|
||||
|
||||
generateIdIfNecessary() {
|
||||
|
||||
Reference in New Issue
Block a user