From a309e6406d6c97b6084a42c58e1589d69aea2b21 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Mon, 13 Jun 2022 22:03:39 +0000 Subject: [PATCH] DEV: Fix compatibility with styleguide (#38) --- javascripts/discourse/initializers/disco-toc-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascripts/discourse/initializers/disco-toc-main.js b/javascripts/discourse/initializers/disco-toc-main.js index 6cb9ed7..153e445 100644 --- a/javascripts/discourse/initializers/disco-toc-main.js +++ b/javascripts/discourse/initializers/disco-toc-main.js @@ -15,7 +15,7 @@ export default { (el, helper) => { if (helper) { const post = helper.getModel(); - if (post.post_number !== 1) { + if (post?.post_number !== 1) { return; }