1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fix count widget to return "0" for an empty filter string instead of undefined

This commit is contained in:
Jeremy Ruston 2020-04-09 11:04:50 +01:00
parent c80f580833
commit bdc5ac592f

View File

@ -45,7 +45,7 @@ CountWidget.prototype.execute = function() {
if(this.filter) {
this.currentCount = this.wiki.filterTiddlers(this.filter,this).length;
} else {
this.currentCount = undefined;
this.currentCount = "0";
}
};