Revert "fix: No maxLength label is displayed for arrays of items #1701"

This reverts commit 543ecc4d39.
This commit is contained in:
Andriy Zaleskyy 2021-10-12 11:05:24 +03:00
parent 032caeb952
commit b5fb407470

View File

@ -26,7 +26,6 @@ import { l } from '../../services/Labels';
import { OptionsContext } from '../OptionsProvider';
import { FieldModel } from '../../services/models/Field';
import styled from '../../styled-components';
import { ArraySchema } from '../Schema';
const MAX_PATTERN_LENGTH = 45;
@ -64,19 +63,11 @@ export class FieldDetails extends React.PureComponent<FieldProps, { patternShown
}
}
return (
<div>
<div>
{schema.type === 'array' ?
<ArraySchema schema={schema}/>
:
(<>
<TypePrefix>{schema.typePrefix}</TypePrefix>
<TypeName>{schema.displayType}</TypeName>
</>
)
}
<TypePrefix>{schema.typePrefix}</TypePrefix>
<TypeName>{schema.displayType}</TypeName>
{schema.displayFormat && (
<TypeFormat>
{' '}