Browse Source

Update traits when the component is removed. Fixes #1535

pull/1551/head
Artur Arseniev 8 years ago
parent
commit
2ba189d8ed
  1. 7
      src/trait_manager/view/TraitsView.js

7
src/trait_manager/view/TraitsView.js

@ -38,10 +38,7 @@ module.exports = DomainViews.extend({
const ppfx = this.ppfx;
const comp = this.em.getSelected();
this.el.className = `${this.className} ${ppfx}one-bg ${ppfx}two-color`;
if (comp) {
this.collection = comp.get('traits');
this.render();
}
this.collection = comp ? comp.get('traits') : [];
this.render();
}
});

Loading…
Cancel
Save