From 21765ff37648dea4c2dc4d619058d01056743cb5 Mon Sep 17 00:00:00 2001 From: Chris Hynes Date: Sat, 21 Mar 2020 09:21:08 -0700 Subject: [PATCH] Fix null ref on empty grid message #104 --- Griddly/Views/Shared/Griddly/Griddly.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Griddly/Views/Shared/Griddly/Griddly.cshtml b/Griddly/Views/Shared/Griddly/Griddly.cshtml index 9a74b4b..9e140dd 100644 --- a/Griddly/Views/Shared/Griddly/Griddly.cshtml +++ b/Griddly/Views/Shared/Griddly/Griddly.cshtml @@ -311,7 +311,7 @@ } -@if (settings.EmptyGridMessage != null) { +@if (settings.EmptyGridMessage != null || settings.EmptyGridMessageTemplate != null) { @@ -321,7 +321,7 @@ } else { - @Model.Settings.EmptyGridMessage + @settings.EmptyGridMessage }