This is an automated email from the ASF dual-hosted git repository.
jscheffl pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-10-test by this push:
new 0b4bd74f8b fix: only treat null/undefined as falsy when rendering
XComEntry (#42199) (#42213)
0b4bd74f8b is described below
commit 0b4bd74f8b63a5ccd5ca232d84c7b95d0f26ffa4
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Fri Sep 13 22:49:55 2024 +0800
fix: only treat null/undefined as falsy when rendering XComEntry (#42199)
(#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 ade9de12defdd2727d3308c7e34b28ba4f68d18f)
Co-authored-by: Detlev V. <[email protected]>
---
airflow/www/static/js/dag/details/taskInstance/Xcom/XcomEntry.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/www/static/js/dag/details/taskInstance/Xcom/XcomEntry.tsx
b/airflow/www/static/js/dag/details/taskInstance/Xcom/XcomEntry.tsx
index 806209bccb..4e2b9dc2dc 100644
--- a/airflow/www/static/js/dag/details/taskInstance/Xcom/XcomEntry.tsx
+++ b/airflow/www/static/js/dag/details/taskInstance/Xcom/XcomEntry.tsx
@@ -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 />