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:
David Taylor 2023-02-24 09:44:50 +00:00 committed by GitHub
parent 4cadad9a53
commit 1dca7b8b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;