FIX: Fix editing built-in badges after removing `_.include`

We want to send the unprotected fields to the server. Corrects 4c8cfe0f
This commit is contained in:
David Taylor 2018-11-27 15:01:02 +00:00
parent ca84c06c59
commit f993aca363
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ export default Ember.Controller.extend(BufferedContent, {
if (this.get("buffered.system")) { if (this.get("buffered.system")) {
var protectedFields = this.get("protectedSystemFields") || []; var protectedFields = this.get("protectedSystemFields") || [];
fields = _.filter(fields, f => protectedFields.includes(f)); fields = _.filter(fields, f => !protectedFields.includes(f));
} }
this.set("saving", true); this.set("saving", true);