Skip to content

A platform for community discussion. Free, open, simple.

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

Joffrey JAFFEUXe47b478b83af
diff --git a/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6 b/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6
index 66f72768de2..78a98c55601 100644
--- a/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6
+++ b/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6
@@ -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);