diff --git a/src/app/shared/utils/utils.ts b/src/app/shared/utils/utils.ts index 23b7ded270..6c9723d355 100644 --- a/src/app/shared/utils/utils.ts +++ b/src/app/shared/utils/utils.ts @@ -208,7 +208,7 @@ export function getBooleanParamFromTemplateRow( _default: boolean ): boolean { const params = row.parameter_list || {}; - return params.hasOwnProperty(name) ? params[name] === "true" : _default; + return params.hasOwnProperty(name) ? parseBoolean(params[name]) : _default; } export function getAnswerListParamFromTemplateRow(