mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
FIX: Computed property override error for webhook.categories (#25418)
This commit is contained in:
parent
5734066942
commit
241eaadc26
@ -25,9 +25,16 @@ export default class WebHook extends RestModel {
|
||||
this.set("wildcard_web_hook", value === "wildcard");
|
||||
}
|
||||
|
||||
@discourseComputed("category_ids")
|
||||
categories(categoryIds) {
|
||||
return Category.findByIds(categoryIds);
|
||||
@computed("category_ids")
|
||||
get categories() {
|
||||
return Category.findByIds(this.category_ids);
|
||||
}
|
||||
|
||||
set categories(value) {
|
||||
this.set(
|
||||
"category_ids",
|
||||
value.map((c) => c.id)
|
||||
);
|
||||
}
|
||||
|
||||
@observes("group_ids")
|
||||
|
Loading…
Reference in New Issue
Block a user