mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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");
|
this.set("wildcard_web_hook", value === "wildcard");
|
||||||
}
|
}
|
||||||
|
|
||||||
@discourseComputed("category_ids")
|
@computed("category_ids")
|
||||||
categories(categoryIds) {
|
get categories() {
|
||||||
return Category.findByIds(categoryIds);
|
return Category.findByIds(this.category_ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
set categories(value) {
|
||||||
|
this.set(
|
||||||
|
"category_ids",
|
||||||
|
value.map((c) => c.id)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@observes("group_ids")
|
@observes("group_ids")
|
||||||
|
Loading…
Reference in New Issue
Block a user