meteor-pages icon indicating copy to clipboard operation
meteor-pages copied to clipboard

Client side filters not working on 1.8.3 and 1.8.4

Open dovydaskukalis opened this issue 9 years ago • 1 comments

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.

dovydaskukalis avatar May 10 '15 20:05 dovydaskukalis

Hey mate,

Ran into same issue.

Bit of reading through code and VOOM

You need to add the availableSettings parameter

availableSettings: { filters: true }

flanamacca avatar May 13 '15 12:05 flanamacca