Skip to content

Commit

Permalink
Update to not clear if duplicate tag is entered for Hide Forbidden fe…
Browse files Browse the repository at this point in the history
…ature
  • Loading branch information
kommunarr committed Nov 26, 2023
1 parent 0cd0280 commit 1e4af02
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/renderer/components/ft-input-tags/ft-input-tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ export default defineComponent({

if (this.tagList.includes(trimmedText)) {
showToast(this.$t('Tag already exists', { tagName: trimmedText }))
} else {
const newList = this.tagList.slice(0)
newList.push(trimmedText)
this.$emit('change', newList)
return
}

const newList = this.tagList.slice(0)
newList.push(trimmedText)
this.$emit('change', newList)
// clear input box
this.$refs.tagNameInput.handleClearTextClick()
},
Expand Down

0 comments on commit 1e4af02

Please sign in to comment.