From 7441228d5bd0211a6a4fba63bc90138c8455caa8 Mon Sep 17 00:00:00 2001 From: Johnny McQuade Date: Wed, 27 Nov 2024 12:55:00 +0000 Subject: [PATCH] fix: get boolean param from template row --- src/app/shared/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(