Lots of progress testing and fixing computation engine
This commit is contained in:
@@ -4,8 +4,11 @@ import { unset } from 'lodash';
|
||||
export default function removeSchemaFields(schemas, prop){
|
||||
schemas.forEach(schema => {
|
||||
schema._schemaKeys.forEach(key => {
|
||||
// Skip object keys
|
||||
if (schema.getQuickTypeForKey(key) === 'object') return;
|
||||
// Skip object and array keys
|
||||
if (
|
||||
schema.getQuickTypeForKey(key) === 'object' ||
|
||||
schema.getQuickTypeForKey(key) === 'objectArray'
|
||||
) return;
|
||||
// Unset other computed only keys
|
||||
applyFnToKey(prop, key, unset)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user