feat: orderedFilterParameters, closes #312

This commit is contained in:
Harttle
2021-09-30 22:15:09 +08:00
committed by Jun Yang
parent fb787e8847
commit 10e8c8ff7e
5 changed files with 47 additions and 14 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export class Hash {
* render (ctx: Context) {
const hash = {}
for (const key of Object.keys(this.hash)) {
hash[key] = yield evalToken(this.hash[key], ctx)
hash[key] = this.hash[key] === undefined ? true : yield evalToken(this.hash[key], ctx)
}
return hash
}