mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 17:20:44 +08:00
REFACTOR: Remove _.filter
This commit is contained in:
parent
87b3caf927
commit
71ddcefffa
|
@ -85,8 +85,8 @@ export default Controller.extend(bufferedProperty("model"), {
|
|||
];
|
||||
|
||||
if (this.get("buffered.system")) {
|
||||
var protectedFields = this.protectedSystemFields || [];
|
||||
fields = _.filter(fields, f => !protectedFields.includes(f));
|
||||
let protectedFields = this.protectedSystemFields || [];
|
||||
fields = fields.filter(f => !protectedFields.includes(f));
|
||||
}
|
||||
|
||||
this.set("saving", true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user