From 688459d64e0e571dfd3c6d76b8c6841ffd91124b Mon Sep 17 00:00:00 2001 From: f Date: Thu, 21 Jun 2018 14:34:28 -0300 Subject: [PATCH] no fallar si el campo no tiene valor --- app/views/posts/template_field/_table.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/template_field/_table.haml b/app/views/posts/template_field/_table.haml index 3ae34387..2daf5c6c 100644 --- a/app/views/posts/template_field/_table.haml +++ b/app/views/posts/template_field/_table.haml @@ -23,7 +23,7 @@ - if @post.new? - value = nf.values - else - - value = @post.get_front_matter(template)[nf] + - value = @post.get_front_matter(template.key).try(:[], nf.key) = render 'posts/template_field/nested', template: nf, value: value,