merge #2884 from ng-empty-tag-fix

Fix empty tags modification
This commit is contained in:
Jannis Redmann 2016-10-26 14:57:47 +02:00 committed by GitHub
commit 49d44cfccc

View File

@ -137,7 +137,7 @@ export default class EditMeta extends Component {
onTagsInputChange = (value) => { onTagsInputChange = (value) => {
const { meta } = this.state; const { meta } = this.state;
const { tags } = meta || []; const { tags = [] } = meta;
const tokens = value.split(/[\s,;]+/); const tokens = value.split(/[\s,;]+/);