summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kescher <jeremy@kescher.at>2022-11-07 02:40:17 +0000
committerClaire <claire.github-309c@sitedethib.com>2023-03-16 12:33:09 +0100
commitd0c0808ad4ede98873e753df1543f33b0349f4be (patch)
treedd5bc27617e795fdeedd397d3612fd38e8ff6155
parentcb622b23b1465dfde7731a1f9bc82dd3fe51a561 (diff)
Add null check on application in dispute viewer (#19851)
-rw-r--r--app/views/disputes/strikes/show.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/disputes/strikes/show.html.haml b/app/views/disputes/strikes/show.html.haml
index 1be50331a4e..4a3005f72a2 100644
--- a/app/views/disputes/strikes/show.html.haml
+++ b/app/views/disputes/strikes/show.html.haml
@@ -59,8 +59,9 @@
= media_attachment.file_file_name
.strike-card__statuses-list__item__meta
%time.formatted{ datetime: status.created_at.iso8601, title: l(status.created_at) }= l(status.created_at)
- ·
- = status.application.name
+ - unless status.application.nil?
+ ·
+ = status.application.name
- else
.one-liner= t('disputes.strikes.status', id: status_id)
.strike-card__statuses-list__item__meta