From f296ca4b4a7e9491cb4a90a00f3c661919c36545 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 18 Dec 2020 09:42:42 +0530 Subject: [PATCH] FEATURE: allow plugins to show custom HTML via renderTags (#11520) This commit allows discourse-assign plugin to show custom HTML via renderTags even if topic has no tags. --- .../javascripts/discourse/app/templates/full-page-search.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/templates/full-page-search.hbs b/app/assets/javascripts/discourse/app/templates/full-page-search.hbs index 946d324389a..d438b390b44 100644 --- a/app/assets/javascripts/discourse/app/templates/full-page-search.hbs +++ b/app/assets/javascripts/discourse/app/templates/full-page-search.hbs @@ -104,7 +104,7 @@ {{category-link result.topic.category.parentCategory}} {{/if}} {{category-link result.topic.category hideParent=true}} - {{#if result.topic.tags}} + {{#if result.topic}} {{discourse-tags result.topic}} {{/if}} {{plugin-outlet name="full-page-search-category" args=(hash result=result)}}