Merge pull request #2528 from chakflying/fix/tag-validation

Fix: Fix incorrect add tag form validation
This commit is contained in:
Louis Lam 2023-01-04 16:11:05 +08:00 committed by GitHub
commit da99833d4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,7 +204,7 @@ export default {
nameInvalid = false; nameInvalid = false;
valueInvalid = false; valueInvalid = false;
invalid = false; invalid = false;
} else if (this.existingTags.filter(tag => tag.name === this.newDraftTag.name).length > 0) { } else if (this.existingTags.filter(tag => tag.name === this.newDraftTag.name).length > 0 && this.newDraftTag.select == null) {
// Try to create new tag with existing name // Try to create new tag with existing name
nameInvalid = true; nameInvalid = true;
invalid = true; invalid = true;