DEV: removes _.toArray from codebase (#6654)

This commit is contained in:
Joffrey JAFFEUX 2018-11-26 11:15:05 +01:00 committed by GitHub
parent 4546d8fbbf
commit e47b478b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);