mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:08:32 +08:00
REFACTOR: Use a module for Ember.isEmpty
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { isEmpty } from "@ember/utils";
|
||||
import EmberObject from "@ember/object";
|
||||
import { escapeExpression } from "discourse/lib/utilities";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
@ -392,7 +393,7 @@ const Report = Discourse.Model.extend({
|
||||
},
|
||||
|
||||
_numberLabel(value, options = {}) {
|
||||
const formatNumbers = Ember.isEmpty(options.formatNumbers)
|
||||
const formatNumbers = isEmpty(options.formatNumbers)
|
||||
? true
|
||||
: options.formatNumbers;
|
||||
|
||||
|
Reference in New Issue
Block a user