use function for defaultView as well

This commit is contained in:
Sacha Greif 2015-04-10 14:46:22 +09:00
parent 26a5e3ad5a
commit bca4d19562

View file

@ -114,12 +114,14 @@ Settings.schema = new SimpleSchema({
autoform: {
group: 'posts',
instructions: 'The view used for the front page',
options: _.map(viewsMenu, function (view) {
return {
value: camelCaseify(view.label),
label: view.label
};
})
options: function () {
return _.map(viewsMenu, function (view) {
return {
value: camelCaseify(view.label),
label: view.label
};
});
}
}
},
postsLayout: {