From 3dab932b96ad6849c351866f33c057624e4364b5 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 13 Mar 2017 16:22:37 -0400 Subject: [PATCH] fix trying to render cdn image of undefined --- .../discourse/templates/components/categories-boxes.hbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/templates/components/categories-boxes.hbs b/app/assets/javascripts/discourse/templates/components/categories-boxes.hbs index 0010294581d..cdd1dbdf9b0 100644 --- a/app/assets/javascripts/discourse/templates/components/categories-boxes.hbs +++ b/app/assets/javascripts/discourse/templates/components/categories-boxes.hbs @@ -2,7 +2,9 @@ {{#each categories as |c|}}
- {{cdn-img src=c.uploaded_logo.url class="logo"}} + {{#if c.uploaded_logo.url}} + {{cdn-img src=c.uploaded_logo.url class="logo"}} + {{/if}}

{{c.name}}