Skip to content

Commit

Permalink
Fix goal selector props parsing fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormheg committed Mar 22, 2024
1 parent c291c4d commit 7e5bb95
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ const GoalSelector: FunctionComponent<GoalSelectorProps> = ({

export function initGoalSelector() {
const goalSelectorProps = JSON.parse(
document.getElementById('data-goal-selector-props')?.textContent || '',
document.getElementById('data-goal-selector-props')?.textContent ||
'{}',
);

document
Expand Down

0 comments on commit 7e5bb95

Please sign in to comment.