Skip to content

Commit

Permalink
fix: Handle nodes without more info fields
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Dec 2, 2024
1 parent da11649 commit ec96740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Checklist: React.FC<Props> = React.memo((props) => {
const Icon = ICONS[props.type];

const hasHelpText =
props.data.policyRef || props.data.info || props.data.howMeasured;
props.data?.policyRef || props.data?.info || props.data?.howMeasured;

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Question: React.FC<Props> = React.memo((props) => {
const iconTitleAccess = props.type === "Error" ? "Error" : undefined;

const hasHelpText =
props.data.policyRef || props.data.info || props.data.howMeasured;
props.data?.policyRef || props.data?.info || props.data?.howMeasured;

return (
<>
Expand Down

0 comments on commit ec96740

Please sign in to comment.