Skip to content

Commit

Permalink
fix: only treat null/undefined as falsy when rendering XComEntry (#42199
Browse files Browse the repository at this point in the history
) (#42213)

fix: only treat null, undefined or NaN as NULL in XComEntry render

fix: use coalescing nullish check + isNaN

fix: only treat null/undefined as falsy when rendering XComEntry
(cherry picked from commit ade9de1)

Co-authored-by: Detlev V. <[email protected]>
  • Loading branch information
2 people authored and ephraimbuddy committed Sep 13, 2024
1 parent 6a0aac8 commit 7208f37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const XcomEntry = ({
No value found for XCom key
</Alert>
);
} else if (!xcom.value) {
} else if (xcom.value === undefined || xcom.value === null) {
content = (
<Alert status="info">
<AlertIcon />
Expand Down

0 comments on commit 7208f37

Please sign in to comment.