diff --git a/src/components/Schema/ObjectSchema.tsx b/src/components/Schema/ObjectSchema.tsx index f8db1401..3bad4e47 100644 --- a/src/components/Schema/ObjectSchema.tsx +++ b/src/components/Schema/ObjectSchema.tsx @@ -34,9 +34,9 @@ export class ObjectSchema extends React.Component { const filteredFields = needFilter ? fields.filter(item => { - return ( - (this.props.skipReadOnly && !item.schema.readOnly) || - (this.props.skipWriteOnly && !item.schema.writeOnly) + return !( + (this.props.skipReadOnly && item.schema.readOnly) || + (this.props.skipWriteOnly && item.schema.writeOnly) ); }) : fields;