diff --git a/app/assets/javascripts/discourse/components/mount-widget.js b/app/assets/javascripts/discourse/components/mount-widget.js index dc1eb2e1661..3701b32d00f 100644 --- a/app/assets/javascripts/discourse/components/mount-widget.js +++ b/app/assets/javascripts/discourse/components/mount-widget.js @@ -58,7 +58,7 @@ export default Component.extend({ willClearRender() { const callbacks = _cleanCallbacks[this.widget]; if (callbacks) { - callbacks.forEach(cb => cb()); + callbacks.forEach(cb => cb(this._tree)); } this._connected.forEach(v => v.destroy());