1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

always set emptyValue, not just for filter

This commit is contained in:
Tobias Beer 2015-12-09 23:33:07 +01:00
parent c2105de49c
commit ea8a8f1b53

View File

@ -61,6 +61,8 @@ SetWidget.prototype.getValue = function() {
if(results.length === 0 && this.setEmptyValue !== undefined) { if(results.length === 0 && this.setEmptyValue !== undefined) {
value = this.setEmptyValue; value = this.setEmptyValue;
} }
} else if(!value && this.setEmptyValue) {
value = this.setEmptyValue;
} }
return value; return value;
}; };