diff --git a/browser/main/Detail/TagSelect.js b/browser/main/Detail/TagSelect.js
index e45d05bc..ce0b4f79 100644
--- a/browser/main/Detail/TagSelect.js
+++ b/browser/main/Detail/TagSelect.js
@@ -96,15 +96,16 @@ class TagSelect extends React.Component {
}
handleTagRemoveButtonClick (tag) {
- return (e) => {
- let { value } = this.props
+ let { value } = this.props
- value.splice(value.indexOf(tag), 1)
- value = _.uniq(value)
+ value = _.isArray(value)
+ ? value.slice()
+ : []
+ value.splice(value.indexOf(tag), 1)
+ value = _.uniq(value)
- this.value = value
- this.props.onChange()
- }
+ this.value = value
+ this.props.onChange()
}
render () {
@@ -118,7 +119,7 @@ class TagSelect extends React.Component {
>
#{tag}