From 6023ea197909c42f4fb4c21ff1dcda3be90a161f Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 14 Apr 2020 18:45:40 +0200 Subject: [PATCH] DEV: pass widget back when cleaning up stream (#9422) --- app/assets/javascripts/discourse/components/mount-widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());