diff --git a/public/js/title.js b/public/js/title.js index 4fbb428..284ae5e 100644 --- a/public/js/title.js +++ b/public/js/title.js @@ -259,7 +259,7 @@ const tagsComponent = () => { newTag: '', inputShown: false, add() { - const tag = this.newTag; + const tag = this.newTag.trim(); this.request(tag, 'PUT', () => { this.tags.push(tag); this.newTag = '';