1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-03 19:38:02 +00:00

Datawidget: Add check if tiddler exists for $filter attribute to avoide rsod (#8333)

This commit is contained in:
Mario Pietsch
2024-07-04 18:37:40 +02:00
committed by GitHub
parent 32c75cbb68
commit 73163386c1

View File

@@ -91,7 +91,9 @@ DataWidget.prototype.computeDataTiddlerValues = function() {
var titles = this.wiki.filterTiddlers(filter); var titles = this.wiki.filterTiddlers(filter);
$tw.utils.each(titles,function(title) { $tw.utils.each(titles,function(title) {
var tiddler = self.wiki.getTiddler(title); var tiddler = self.wiki.getTiddler(title);
tiddlers.push(tiddler); if(tiddler) {
tiddlers.push(tiddler);
}
}); });
} }
} }