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)

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
  • Loading branch information
detvdl authored Sep 13, 2024
1 parent c29f8dd commit ade9de1
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 ade9de1

Please sign in to comment.