mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 18:25:24 +00:00
Schema.js vscode auto correct
This commit is contained in:
@@ -132,7 +132,7 @@ let filter = (opts, schemaName) => {
|
||||
|
||||
return list.reduce((acc, 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)) {
|
||||
acc[ref] = opts[ref];
|
||||
|
||||
Reference in New Issue
Block a user