REFACTOR: Remove _.filter

This commit is contained in:
Robin Ward 2020-09-01 13:51:42 -04:00
parent 87b3caf927
commit 71ddcefffa

View File

@ -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);