Fix crash with unset $tiddler attribute on <$data> widget

Thanks @CodaCodr
This commit is contained in:
Jeremy Ruston 2023-10-31 16:52:22 +00:00
parent 5eae32d762
commit a32d5143ae
1 changed files with 4 additions and 1 deletions

View File

@ -61,7 +61,10 @@ DataWidget.prototype.readDataTiddlerValues = function() {
if(this.hasAttribute("$tiddler")) {
title = this.getAttribute("$tiddler");
if(title) {
tiddlers.push(this.wiki.getTiddler(title));
var tiddler = this.wiki.getTiddler(title);
if(tiddler) {
tiddlers.push(tiddler);
}
}
}
if(this.hasAttribute("$filter")) {