DEV: linting

This commit is contained in:
jjaffeux
2020-09-22 17:11:41 +02:00
parent ca86e0b63c
commit 6205bb8569
5 changed files with 163 additions and 157 deletions
@@ -97,8 +97,9 @@ export default Ember.Controller.extend({
save() {
this.set("loading", true);
if (this.get("selectedItem.description") === "")
if (this.get("selectedItem.description") === "") {
this.set("selectedItem.description", "");
}
return this.selectedItem
.save()
@@ -202,8 +203,9 @@ export default Ember.Controller.extend({
.then((result) => {
const query = this.get("selectedItem");
query.setProperties(result.getProperties(Query.updatePropertyNames));
if (!query.group_ids || !Array.isArray(query.group_ids))
if (!query.group_ids || !Array.isArray(query.group_ids)) {
query.set("group_ids", []);
}
query.markNotDirty();
this.set("editing", false);
})