From 15a78f87bb89a5c53dd7e13d792f0ab4601cd230 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 22 Jun 2022 15:49:06 +0200 Subject: [PATCH] Call ToCall method also when the method is not nil. --- grid/grid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid/grid.go b/grid/grid.go index f01a7c9..87fa00d 100644 --- a/grid/grid.go +++ b/grid/grid.go @@ -120,7 +120,7 @@ func (g *Grid) GetRowFromMap (m map[string]interface{}) string { for _, c := range g.cols { v, ok := m[c.Name] - if !ok { + if !ok || c.ToCall != nil { if c.ToCall != nil { v = c.ToCall(m) } -- 2.49.0