From 671e0becb6ad13bf18006aac4157e0d7140aab7b Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 28 May 2024 17:05:28 -0700 Subject: [PATCH] Oops, fix recent bug in Item Getting Guide for most item types Oh oops, I added an optional `subtitle` argument for the item table list row template, but didn't realize that it would crash in cases when not provided! Now, we add an initializer to set it to `nil` if undefined. --- app/views/items/_item_list_row.html.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/items/_item_list_row.html.haml b/app/views/items/_item_list_row.html.haml index 96dc26c0..09b7e52d 100644 --- a/app/views/items/_item_list_row.html.haml +++ b/app/views/items/_item_list_row.html.haml @@ -1,3 +1,5 @@ +- subtitle = nil unless defined? subtitle + %tr %td.thumbnail-cell = link_to item_thumbnail_for(item), item, target: "_blank",