CR and size filters
parent
15d34a0838
commit
dc70f366f4
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -202,17 +202,17 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
// // Filter by level range.
|
// // Filter by level range.
|
||||||
// if (this.crRange.length == 2) {
|
if (this.crRange.length == 2) {
|
||||||
// result = result.filter(entry =>
|
result = result.filter(entry =>
|
||||||
// entry.system.attributes.level.value >= this.crRange[0] &&
|
Number(entry.system.details.cr) >= this.crRange[0] &&
|
||||||
// entry.system.attributes.level.value <= this.crRange[1]
|
Number(entry.system.details.cr) <= this.crRange[1]
|
||||||
// );
|
);
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Handle multiselect filters, which use arrays as their values.
|
// Handle multiselect filters, which use arrays as their values.
|
||||||
// if (Array.isArray(this.size) && this.size.length > 0) {
|
if (Array.isArray(this.size) && this.size.length > 0) {
|
||||||
// result = result.filter(entry => this.size.includes(entry.system.details.size.value));
|
result = result.filter(entry => this.size.includes(entry.system.traits.size));
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Reflow pager.
|
// Reflow pager.
|
||||||
if (result.length > this.pager.perPage) {
|
if (result.length > this.pager.perPage) {
|
||||||
|
|
Loading…
Reference in New Issue