From 47b0bfe47e6f13d549897149b0abc4a72ba8ac88 Mon Sep 17 00:00:00 2001
From: Ruben Beltran del Rio <ruben@unlimited.pizza>
Date: Tue, 20 Apr 2021 23:38:02 +0200
Subject: Add tests to second batch of components

- Error Block
- Forum List
- Language Selector
- Post
- Tag
- Topic Summary
---
 src/components/post/post.svelte | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/components/post/post.svelte')

diff --git a/src/components/post/post.svelte b/src/components/post/post.svelte
index fd9e580..66901af 100644
--- a/src/components/post/post.svelte
+++ b/src/components/post/post.svelte
@@ -23,9 +23,11 @@
 			{timestampToISO(post.created_at)}
 		</a>
 	</time>
+  {#if post.topic}
   <span>
     ({$_('post.topic_location')} <a href="/t/{post.topic.id}">{post.topic.title}</a>.)
   </span>
+  {/if}
 </aside>
 <article
 	class="e-content"
-- 
cgit 

