Skip to content

Commit

Permalink
Fix null ref on empty grid message #104
Browse files Browse the repository at this point in the history
  • Loading branch information
programcsharp committed Mar 21, 2020
1 parent 44d9408 commit 21765ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Griddly/Views/Shared/Griddly/Griddly.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
</tfoot>
}

@if (settings.EmptyGridMessage != null) {
@if (settings.EmptyGridMessage != null || settings.EmptyGridMessageTemplate != null) {
<tfoot class="empty-grid-message" style="@(Model.Total > 0 ? "display:none;" : null)">
<tr>
<td colspan="@settings.Columns.Where(x => x.Visible).Count()">
Expand All @@ -321,7 +321,7 @@
}
else
{
@Model.Settings.EmptyGridMessage
@settings.EmptyGridMessage
}
</td>
</tr>
Expand Down

0 comments on commit 21765ff

Please sign in to comment.