From 840a852b68793a5dbfc5c75eca7e3de99de068d3 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 10 Dec 2019 21:58:16 -0500 Subject: [PATCH] fix error on profile page --- lib/philomena_web/templates/profile/show.html.slime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/templates/profile/show.html.slime b/lib/philomena_web/templates/profile/show.html.slime index b0720084..c96362d8 100644 --- a/lib/philomena_web/templates/profile/show.html.slime +++ b/lib/philomena_web/templates/profile/show.html.slime @@ -53,7 +53,7 @@ .block__header span.block__header__title User Links = for link <- @user.verified_links, link.public or can?(@conn, :edit, link) do - - watchers = @watcher_counts[link.tag.id] || 0 + - watchers = if link.tag, do: @watcher_counts[link.tag.id] || 0, else: 0 .block__content.alternating-color.break-word .center