Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
πŸ› ensure tag property exists before trying to trim it (#578)
Browse files Browse the repository at this point in the history
no issue
- fixes error thrown when you focus in/focus out of a field in the tags
editor without entering anything
  • Loading branch information
acburdine authored and kevinansfield committed Mar 14, 2017
1 parent 652fe85 commit 33db4b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/settings/tags/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export default Controller.extend({
let tag = this.get('tag');
let currentValue = tag.get(propKey);

newValue = newValue.trim();
if (newValue) {
newValue = newValue.trim();
}

// Quit if there was no change
if (newValue === currentValue) {
Expand Down

0 comments on commit 33db4b5

Please sign in to comment.