Don't push empty tags to input (#3222)

This commit is contained in:
Jaco Greeff 2016-11-06 17:42:50 +01:00 committed by GitHub
parent 44266115b6
commit a4cc6058dd

View File

@ -99,11 +99,10 @@ export default class EditMeta extends Component {
renderTags () {
const { meta } = this.state;
const { tags } = meta || [];
return (
<InputChip
tokens={ tags }
tokens={ meta.tags || [] }
onTokensChange={ this.onTagsChange }
label='(optional) tags'
hint='press <Enter> to add a tag'