From a35bb8ff8b8dfcf4e79ee8f4f98381cd26c2ed98 Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Mon, 25 Apr 2022 11:11:53 +0800 Subject: [PATCH] #1821 fix bug --- modules/templates/helper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 6f0690509..dbb9354aa 100755 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -325,6 +325,8 @@ func NewFuncMap() []template.FuncMap { "DatasetPathJoin": func(arr []string, index int, seq string) string { return strings.Join(arr[1:index+1], seq) }, + "GetRefType": GetRefType, + "GetRefName": GetRefName, }} } @@ -435,8 +437,6 @@ func NewTextFuncMap() []texttmpl.FuncMap { } return float32(n) * 100 / float32(sum) }, - "GetRefType": GetRefType, - "GetRefName": GetRefName, }} }