FIX: ensures helper is set

FIX: ensures helper is set

It was causing an issue with discourse-category-sidebars

diff --git a/javascripts/discourse/initializers/init-discourse-reply-template-component.js.es6 b/javascripts/discourse/initializers/init-discourse-reply-template-component.js.es6
index d890ba7..edfc736 100644
--- a/javascripts/discourse/initializers/init-discourse-reply-template-component.js.es6
+++ b/javascripts/discourse/initializers/init-discourse-reply-template-component.js.es6
@@ -116,7 +116,7 @@ export default {
             'div.d-wrap[data-wrap="template"]'
           );
 
-          if (wraps) {
+          if (helper && wraps) {
             const post = helper.getModel();
 
             if (!post) return;

GitHub sha: 65a05866

1 Like