From b5fb40747061d3e3b5afa907d8cd56d84a4a706c Mon Sep 17 00:00:00 2001 From: Andriy Zaleskyy Date: Tue, 12 Oct 2021 11:05:24 +0300 Subject: [PATCH] Revert "fix: No maxLength label is displayed for arrays of items #1701" This reverts commit 543ecc4d3902c3af3936f1b2e281ccb63cf96332. --- src/components/Fields/FieldDetails.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/components/Fields/FieldDetails.tsx b/src/components/Fields/FieldDetails.tsx index bbd522bc..1aad8c61 100644 --- a/src/components/Fields/FieldDetails.tsx +++ b/src/components/Fields/FieldDetails.tsx @@ -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
- {schema.type === 'array' ? - - : - (<> - {schema.typePrefix} - {schema.displayType} - - ) - } + {schema.typePrefix} + {schema.displayType} {schema.displayFormat && ( {' '}