Fix crash with action-deletefield and missing tiddler attribute

Fixes #4188
fix-syncer
Jeremy Ruston 2019-08-24 11:39:00 +01:00
rodzic 67066fe86e
commit a170210069
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;