From c5c443fda3d7001e2d0947506b06de307fb0af24 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 10 Jul 2016 10:51:49 +1000 Subject: [PATCH] correct typo --- app/assets/javascripts/discourse/components/tag-chooser.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/tag-chooser.js.es6 b/app/assets/javascripts/discourse/components/tag-chooser.js.es6 index 37d7f5fd2aa..a4c97326b22 100644 --- a/app/assets/javascripts/discourse/components/tag-chooser.js.es6 +++ b/app/assets/javascripts/discourse/components/tag-chooser.js.es6 @@ -78,7 +78,7 @@ export default Ember.TextField.extend({ term = term.replace(filterRegexp, '').trim(); // No empty terms, make sure the user has permission to create the tag - if (!term.lenght || !this.get('allowCreate')) return; + if (!term.length || !this.get('allowCreate')) return; if ($(data).filter(function() { return this.text.localeCompare(term) === 0;