Skip to content

Commit

Permalink
fix: only treat null/undefined as falsy when rendering XComEntry (apa…
Browse files Browse the repository at this point in the history
…che#42199) (apache#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
pierrejeambrun and detvdl authored Sep 13, 2024
1 parent 58af927 commit 0b4bd74
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 0b4bd74

Please sign in to comment.