Skip to content

Commit 3803d1b

Browse files
committed
Null check on RenderUnderlyingValue
1 parent ea4a326 commit 3803d1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Griddly.Mvc/GriddlyColumn.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ public override HtmlString RenderCell(object row, GriddlySettings settings, bool
159159

160160
public override HtmlString RenderUnderlyingValue(object row)
161161
{
162+
if (UnderlyingValueTemplate == null) return null;
163+
162164
object value = null;
163165

164166
try

0 commit comments

Comments
 (0)