mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-27 14:48:19 +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) {
|
if(this.filter) {
|
||||||
this.currentCount = this.wiki.filterTiddlers(this.filter,this).length;
|
this.currentCount = this.wiki.filterTiddlers(this.filter,this).length;
|
||||||
} else {
|
} else {
|
||||||
this.currentCount = undefined;
|
this.currentCount = "0";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user