mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
FIX: Correct issues in admin-embeddable-host (#20439)
Classic Component arguments are not available in the constructor. Switch back to using `init()` for this component Followup to a433b30650d125e6685fb13f679f613003f246aa
This commit is contained in:
parent
4cadad9a53
commit
1dca7b8b0a
@ -21,8 +21,8 @@ export default class EmbeddableHost extends Component.extend(
|
||||
|
||||
@or("host.isNew", "editToggled") editing;
|
||||
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
init() {
|
||||
super.init(...arguments);
|
||||
|
||||
const host = this.host;
|
||||
const categoryId = host.category_id || this.site.uncategorized_category_id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user