REFACTOR: Ember.makeArray was removed from the public API

This commit is contained in:
Robin Ward
2019-10-31 13:55:01 -04:00
parent 90f934a660
commit 89f602f66b
16 changed files with 44 additions and 22 deletions

View File

@ -1,3 +1,4 @@
import { makeArray } from "discourse/lib/utilities";
import { alias } from "@ember/object/computed";
import Component from "@ember/component";
import computed from "ember-addons/ember-computed-decorators";
@ -91,7 +92,7 @@ export default Component.extend({
@computed("sortLabel", "sortDirection", "model.data.[]")
sortedData(sortLabel, sortDirection, data) {
data = Ember.makeArray(data);
data = makeArray(data);
if (sortLabel) {
const compare = (label, direction) => {