mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-10 23:06:06 +00:00
Fix crash with unset $tiddler attribute on <$data> widget
Thanks @CodaCodr
This commit is contained in:
@@ -61,7 +61,10 @@ DataWidget.prototype.readDataTiddlerValues = function() {
|
|||||||
if(this.hasAttribute("$tiddler")) {
|
if(this.hasAttribute("$tiddler")) {
|
||||||
title = this.getAttribute("$tiddler");
|
title = this.getAttribute("$tiddler");
|
||||||
if(title) {
|
if(title) {
|
||||||
tiddlers.push(this.wiki.getTiddler(title));
|
var tiddler = this.wiki.getTiddler(title);
|
||||||
|
if(tiddler) {
|
||||||
|
tiddlers.push(tiddler);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(this.hasAttribute("$filter")) {
|
if(this.hasAttribute("$filter")) {
|
||||||
|
Reference in New Issue
Block a user