fixed tags

This commit is contained in:
u-e 2019-01-03 11:36:16 +03:00
parent 11aee5d4de
commit 949150ee90
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export default class TagAreaView extends Component {
super(props);
this.state = {
currentText: '',
chips: props.draftChips || [' '],
chips: [' '],
chipsCount: props.chipsCount || 5,
activeChip: 0,
};

View File

@ -176,7 +176,7 @@ class EditorScreen extends Component {
{!isReply && <TitleArea value={fields.title} componentID="title" intl={intl} />}
{!isReply && (
<TagArea
draftChips={fields.tags}
draftChips={fields.tags && fields.tags > 0 && fields.tags}
componentID="tag-area"
handleTagChanged={this._handleOnTagAdded}
intl={intl}