From a170210069bbec265992b365a61e0722b480ab1d Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 24 Aug 2019 11:39:00 +0100 Subject: [PATCH] Fix crash with action-deletefield and missing tiddler attribute Fixes #4188 --- core/modules/widgets/action-deletefield.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/action-deletefield.js b/core/modules/widgets/action-deletefield.js index ffe4ef5d0..45425bf4e 100644 --- a/core/modules/widgets/action-deletefield.js +++ b/core/modules/widgets/action-deletefield.js @@ -59,7 +59,7 @@ DeleteFieldWidget.prototype.invokeAction = function(triggeringWidget,event) { tiddler = this.wiki.getTiddler(self.actionTiddler), removeFields = {}, hasChanged = false; - if(this.actionField) { + if(this.actionField && tiddler) { removeFields[this.actionField] = undefined; if(this.actionField in tiddler.fields) { hasChanged = true;