From 21d9d895d7ea410f15f3df834d97a2f16e9beda7 Mon Sep 17 00:00:00 2001 From: "Detlev V." Date: Fri, 13 Sep 2024 11:29:13 +0200 Subject: [PATCH] fix: only treat null/undefined as falsy when rendering XComEntry (#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 --- .../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 806209bccbf32..4e2b9dc2dc5a3 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 = (