0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 ensure tag property exists before trying to trim it (#578)

no issue
- fixes error thrown when you focus in/focus out of a field in the tags
editor without entering anything
This commit is contained in:
Austin Burdine 2017-03-14 05:05:59 -05:00 committed by Kevin Ansfield
parent 7180927129
commit 4a1c548e5b

View file

@ -18,7 +18,9 @@ export default Controller.extend({
let tag = this.get('tag');
let currentValue = tag.get(propKey);
if (newValue) {
newValue = newValue.trim();
}
// Quit if there was no change
if (newValue === currentValue) {