Skip to content

Commit 505d7e2

Browse files
committed
fix(api): return survey vars in list of templates
1 parent f08a504 commit 505d7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/sql/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func (d *SqlDb) GetTemplates(projectID int, filter db.TemplateFilter, params db.
276276
}
277277

278278
if tpl.SurveyVarsJSON != nil {
279-
err = json.Unmarshal([]byte(*tpl.SurveyVarsJSON), &tpl.SurveyVars)
279+
err = json.Unmarshal([]byte(*tpl.SurveyVarsJSON), &template.SurveyVars)
280280
}
281281

282282
if err != nil {

0 commit comments

Comments
 (0)