1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 23:34:50 +00:00

Fix problem with new tiddler button

This commit is contained in:
Jermolene 2014-10-10 10:17:42 +01:00
parent e90e588621
commit f37a7101a7

View File

@ -405,9 +405,9 @@ NavigatorWidget.prototype.handleNewTiddlerEvent = function(event) {
mergedTags = $tw.utils.pushTop($tw.utils.parseStringArray(templateTiddler.tags),existingTiddler.fields.tags);
} else if(existingTiddler && existingTiddler.fields.tags) {
mergedTags = existingTiddler.fields.tags;
} else if(templateTiddler.tags) {
} else if(templateTiddler && templateTiddler.tags) {
mergedTags = templateTiddler.tags;
} else if(templateTiddler.fields.tags) {
} else if(templateTiddler && templateTiddler.fields && templateTiddler.fields.tags) {
mergedTags = templateTiddler.fields.tags;
}
// Save the draft tiddler