1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Correct return value for makeDraftTiddler

This commit is contained in:
Jermolene 2014-10-10 09:03:35 +01:00
parent d74fc931c1
commit 1e02a9f0db

View File

@ -250,7 +250,7 @@ NavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) {
// See if there is already a draft tiddler for this tiddler
var draftTitle = this.wiki.findDraft(targetTitle);
if(draftTitle) {
return draftTitle;
return this.wiki.getTiddler(draftTitle);
}
// Get the current value of the tiddler we're editing
var tiddler = this.wiki.getTiddler(targetTitle);