DEV: Fix a computed property overwrite (#14927)
There's a `category` computed property that already does what this piece of code did.
This commit is contained in:
parent
2b848213f7
commit
9711caf7ea
|
@ -46,11 +46,6 @@ const Reviewable = RestModel.extend({
|
|||
updated.payload || {}
|
||||
);
|
||||
|
||||
if (updated.category_id) {
|
||||
updated.category = Category.findById(updated.category_id);
|
||||
delete updated.category_id;
|
||||
}
|
||||
|
||||
this.setProperties(updated);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue