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

Fix unnecessary "list" field creation when renaming tiddlers

Fixes #4120
This commit is contained in:
Jeremy Ruston 2019-07-30 17:10:53 +01:00
parent cb1d35e230
commit 7f78065992

View File

@ -44,8 +44,8 @@ function relinkTiddler(fromTitle,toTitle,options) {
var type = tiddler.fields.type || "";
// Don't touch plugins or JavaScript modules
if(!tiddler.fields["plugin-type"] && type !== "application/javascript") {
var tags = (tiddler.fields.tags || []).slice(0),
list = (tiddler.fields.list || []).slice(0),
var tags = tiddler.fields.tags ? tiddler.fields.tags.slice(0) : undefined,
list = tiddler.fields.list ? tiddler.fields.list.slice(0) : undefined,
isModified = false;
if(!options.dontRenameInTags) {
// Rename tags