mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-11 21:14:02 +00:00
Fix crash with action-deletefield and missing tiddler attribute
Fixes #4188
This commit is contained in:
@@ -59,7 +59,7 @@ DeleteFieldWidget.prototype.invokeAction = function(triggeringWidget,event) {
|
|||||||
tiddler = this.wiki.getTiddler(self.actionTiddler),
|
tiddler = this.wiki.getTiddler(self.actionTiddler),
|
||||||
removeFields = {},
|
removeFields = {},
|
||||||
hasChanged = false;
|
hasChanged = false;
|
||||||
if(this.actionField) {
|
if(this.actionField && tiddler) {
|
||||||
removeFields[this.actionField] = undefined;
|
removeFields[this.actionField] = undefined;
|
||||||
if(this.actionField in tiddler.fields) {
|
if(this.actionField in tiddler.fields) {
|
||||||
hasChanged = true;
|
hasChanged = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user