mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-31 09:58:01 +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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user