From 0b4bd74f8b63a5ccd5ca232d84c7b95d0f26ffa4 Mon Sep 17 00:00:00 2001 From: Pierre Jeambrun Date: Fri, 13 Sep 2024 22:49:55 +0800 Subject: [PATCH] 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. --- .../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 806209bccbf3..4e2b9dc2dc5a 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 ); - } else if (!xcom.value) { + } else if (xcom.value === undefined || xcom.value === null) { content = (