mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
REFACTOR: Ember.makeArray
was removed from the public API
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user