1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-12 05:43:16 +00:00

Fix bug exposed in "Filter Operators" tiddler

See https://github.com/TiddlyWiki/TiddlyWiki5/pull/8972#issuecomment-2740003414
This commit is contained in:
Jeremy Ruston 2025-03-20 17:46:12 +00:00
parent bb5061c6ff
commit f914aa6605

@ -421,9 +421,13 @@ Widget.prototype.computeAttribute = function(attribute,options) {
value = [value];
}
} else { // String attribute
value = attribute.value || "";
value = attribute.value;
if(options.asList) {
value = [value];
if(value === undefined) {
value = [];
} else {
value = [value];
}
}
}
return value;