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 { isEmpty } from "@ember/utils";
import EmberObject from "@ember/object";
import { escapeExpression } from "discourse/lib/utilities";
@ -137,7 +138,7 @@ const Report = Discourse.Model.extend({
@computed("data", "currentTotal")
currentAverage(data, total) {
return Ember.makeArray(data).length === 0
return makeArray(data).length === 0
? 0
: parseFloat((total / parseFloat(data.length)).toFixed(1));
},