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:
parent
c80f580833
commit
bdc5ac592f
@ -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";
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user