mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +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 { debounce } from "@ember/runloop";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import Component from "@ember/component";
|
||||
@ -49,10 +50,10 @@ export default Component.extend({
|
||||
if (!chartCanvas) return;
|
||||
|
||||
const context = chartCanvas.getContext("2d");
|
||||
const chartData = Ember.makeArray(
|
||||
const chartData = makeArray(
|
||||
model.get("chartData") || model.get("data")
|
||||
);
|
||||
const prevChartData = Ember.makeArray(
|
||||
const prevChartData = makeArray(
|
||||
model.get("prevChartData") || model.get("prev_data")
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user