Skip to content

A platform for community discussion. Free, open, simple.

FIX: Don't call cooked decorators in composer if cooked is unchanged

David Taylor9e98c02dd7c7
diff --git a/app/assets/javascripts/discourse/app/components/d-editor.js b/app/assets/javascripts/discourse/app/components/d-editor.js
index 4917acc81cd..f979d7cc720 100644
--- a/app/assets/javascripts/discourse/app/components/d-editor.js
+++ b/app/assets/javascripts/discourse/app/components/d-editor.js
@@ -367,6 +367,9 @@ export default Component.extend({
if (this.isDestroyed) {
return;
}
+
+ if (this.preview === cooked) return;
+
this.set("preview", cooked);
schedule("afterRender", () => {
if (this._state !== "inDOM") {