Don't push empty tags to input (#3222)
This commit is contained in:
parent
44266115b6
commit
a4cc6058dd
@ -99,11 +99,10 @@ export default class EditMeta extends Component {
|
|||||||
|
|
||||||
renderTags () {
|
renderTags () {
|
||||||
const { meta } = this.state;
|
const { meta } = this.state;
|
||||||
const { tags } = meta || [];
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<InputChip
|
<InputChip
|
||||||
tokens={ tags }
|
tokens={ meta.tags || [] }
|
||||||
onTokensChange={ this.onTagsChange }
|
onTokensChange={ this.onTagsChange }
|
||||||
label='(optional) tags'
|
label='(optional) tags'
|
||||||
hint='press <Enter> to add a tag'
|
hint='press <Enter> to add a tag'
|
||||||
|
Loading…
Reference in New Issue
Block a user