A platform for community discussion. Free, open, simple.
DEV: Prepare plugin-outlet for ember upgrade (#24567)
David Taylor824878f31528
diff --git a/app/assets/javascripts/discourse/app/components/plugin-outlet.js b/app/assets/javascripts/discourse/app/components/plugin-outlet.jsindex 05f2a6d8295..5c621d18e10 100644--- a/app/assets/javascripts/discourse/app/components/plugin-outlet.js+++ b/app/assets/javascripts/discourse/app/components/plugin-outlet.js@@ -145,7 +145,11 @@ class PluginOutletWithTagNameWrapper extends ClassicComponent {// Overridden parentView to make this wrapper 'transparent'// Calling this will trigger the deprecation notice in PluginOutletComponentget parentView() {- return this._parentView.parentView;+ // init() of CoreView calls `this.parentView`. That would trigger the deprecation notice,+ // so skip it until this component is initialized.+ if (this._state) {+ return this._parentView.parentView;+ }}set parentView(value) {this._parentView = value;