Skip to content

Commit

Permalink
fix: get boolean param from template row
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcquade committed Nov 27, 2024
1 parent f6a61cd commit 7441228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7441228

Please sign in to comment.