mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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 a433b30650
This commit is contained in:
@@ -21,8 +21,8 @@ export default class EmbeddableHost extends Component.extend(
|
|||||||
|
|
||||||
@or("host.isNew", "editToggled") editing;
|
@or("host.isNew", "editToggled") editing;
|
||||||
|
|
||||||
constructor() {
|
init() {
|
||||||
super(...arguments);
|
super.init(...arguments);
|
||||||
|
|
||||||
const host = this.host;
|
const host = this.host;
|
||||||
const categoryId = host.category_id || this.site.uncategorized_category_id;
|
const categoryId = host.category_id || this.site.uncategorized_category_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user