Schema.js vscode auto correct

This commit is contained in:
Alexander Cerutti
2018-11-07 12:35:46 +01:00
parent 7624a895e0
commit 7e2850e9d9

View File

@@ -132,7 +132,7 @@ let filter = (opts, schemaName) => {
return list.reduce((acc, current, index) => { return list.reduce((acc, current, index) => {
let ref = isObject ? current : index; let ref = isObject ? current : index;
let check = isObject ? { [current] : opts[current] } : [ opts[index] ]; let check = isObject ? { [current]: opts[current] } : [opts[index]];
if (isValid(check, schemaName)) { if (isValid(check, schemaName)) {
acc[ref] = opts[ref]; acc[ref] = opts[ref];