meteor-pages
meteor-pages copied to clipboard
Client side filters not working on 1.8.3 and 1.8.4
Hi,
Filters on client side seems to not work on latest versions if you set a filter using variables. Example below is working
Pages.set({
filters: {
type: 'domain',
extension: {
$in: ['.com', '.org']
}
}
})
but if we have like this:
var filters = {};
filters.type = 'domain';
filters.extension = {$in: ['.com', '.org']};
Pages.set({
filters: filters
})
It doesn't work. Downgraded to 1.8.0 and it is working on this one.
Hey mate,
Ran into same issue.
Bit of reading through code and VOOM
You need to add the availableSettings parameter
availableSettings: { filters: true }