DEV: removes _.toArray from codebase (#6654)
This commit is contained in:
parent
4546d8fbbf
commit
e47b478b83
|
@ -131,8 +131,8 @@ export default Ember.Controller.extend({
|
|||
});
|
||||
|
||||
this.get("parentController.model.content").forEach(theme => {
|
||||
const children = _.toArray(theme.get("childThemes"));
|
||||
const rawChildren = _.toArray(theme.get("child_themes") || []);
|
||||
const children = Ember.makeArray(theme.get("childThemes"));
|
||||
const rawChildren = Ember.makeArray(theme.get("child_themes"));
|
||||
const index = children ? children.indexOf(model) : -1;
|
||||
if (index > -1) {
|
||||
children.splice(index, 1);
|
||||
|
|
Loading…
Reference in New Issue