mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 22:38:41 +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")) {
|
if (this.get("buffered.system")) {
|
||||||
var protectedFields = this.protectedSystemFields || [];
|
let protectedFields = this.protectedSystemFields || [];
|
||||||
fields = _.filter(fields, f => !protectedFields.includes(f));
|
fields = fields.filter(f => !protectedFields.includes(f));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.set("saving", true);
|
this.set("saving", true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user