diff --git a/src/react/components/common/tagInput/tagInputItemLabel.tsx b/src/react/components/common/tagInput/tagInputItemLabel.tsx index 1593789d4..04a44e94f 100644 --- a/src/react/components/common/tagInput/tagInputItemLabel.tsx +++ b/src/react/components/common/tagInput/tagInputItemLabel.tsx @@ -15,12 +15,10 @@ export interface ITagInputItemLabelState {} export default class TagInputItemLabel extends React.Component { public render() { - const drawnRegions = []; const texts = []; let hasEmptyTextValue = false; this.props.label.value.forEach((formRegion: IFormRegion, idx) => { - if (formRegion.text === "" && !hasEmptyTextValue) { - drawnRegions.push() + if (formRegion.text === "") { hasEmptyTextValue = true; } else { texts.push(formRegion.text); @@ -35,7 +33,9 @@ export default class TagInputItemLabel extends React.Component
{text} - {drawnRegions} + {hasEmptyTextValue && + + }
);