mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Fix oversight in isDraftModified
If the original tiddler doesn’t exist then we should count the draft as always having been modified
This commit is contained in:
parent
a5e9ef9b5f
commit
b2c1331c11
@ -1077,6 +1077,9 @@ exports.isDraftModified = function(title) {
|
||||
}
|
||||
var ignoredFields = ["created", "modified", "title", "draft.title", "draft.of", "tags"],
|
||||
origTiddler = this.getTiddler(tiddler.fields["draft.of"]);
|
||||
if(!origTiddler) {
|
||||
return true;
|
||||
}
|
||||
if(tiddler.fields["draft.title"] !== tiddler.fields["draft.of"]) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user