UNPKG

274 BJavaScriptView Raw
1'use strict';
2
3module.exports = function(app, base, options) {
4 return function(val, key, config, schema) {
5 if (typeof val === 'undefined') {
6 return;
7 }
8 if (val === false) {
9 schema.omit('tasks');
10 schema.omit('_');
11 }
12 return val;
13 };
14};