We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cab284 commit a25b493Copy full SHA for a25b493
Griddly/Views/Shared/Griddly/Griddly.cshtml
@@ -173,11 +173,16 @@
173
}
174
@if (settings.HeaderTemplate != null)
175
{
176
- <tr class="griddly-header">
177
- <td colspan="@settings.Columns.Count">
178
- @settings.HeaderTemplate(Model)
179
- </td>
180
- </tr>
+ var template = settings.HeaderTemplate(Model);
+
+ if (template != null)
+ {
+ <tr class="griddly-header">
181
+ <td colspan="@settings.Columns.Count">
182
+ @template
183
+ </td>
184
+ </tr>
185
+ }
186
187
</thead>
188
0 commit comments