Skip to content

Commit

Permalink
Merge pull request #2563 from IDEMSInternational/fix/get-boolean-para…
Browse files Browse the repository at this point in the history
…m-from-template-row

fix: get boolean param from template row
  • Loading branch information
esmeetewinkel authored Nov 27, 2024
2 parents f6a61cd + 7441228 commit 660a57e
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 660a57e

Please sign in to comment.