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;