diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index f4f216960..205db4c91 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -277,8 +277,8 @@ NavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) { } // Get the current value of the tiddler we're editing var tiddler = this.wiki.getTiddler(targetTitle); - var defaultType = this.wiki.getTiddler("$:/config/DefaultMissingType"); - var defaultFields = { type: defaultType !== null ? defaultType.fields['text'].trim() : "" }; + var defaultType = this.wiki.getTiddlerText("$:/config/DefaultMissingType", "").trim(); + var defaultFields = { type: defaultType }; // Save the initial value of the draft tiddler draftTitle = this.generateDraftTitle(targetTitle); var draftTiddler = new $tw.Tiddler({ @@ -291,7 +291,7 @@ NavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) { "draft.of": targetTitle }, this.wiki.getModificationFields(), - tiddler == null ? defaultFields : {} + tiddler === null || tiddler === undefined ? defaultFields : {} ); this.wiki.addTiddler(draftTiddler); return draftTiddler; diff --git a/core/wiki/config/DefaultMissingType.tid b/core/wiki/config/DefaultMissingType.tid deleted file mode 100644 index db2fc745e..000000000 --- a/core/wiki/config/DefaultMissingType.tid +++ /dev/null @@ -1,3 +0,0 @@ -title: $:/config/DefaultMissingType - -