From 3febd3f7b5fe851c19df23f0fb5131ad3aa72de9 Mon Sep 17 00:00:00 2001 From: enisnazif Date: Sat, 9 Nov 2024 17:40:54 +0000 Subject: [PATCH] #43252 Disable extra links button if link is null or empty (#43844) * Disable button if link is null or empty * Fix space --------- Co-authored-by: Enis Nazif (cherry picked from commit de8818270095d9f05edfec8e03daa5df7d6a773b) --- airflow/www/static/js/dag/details/taskInstance/ExtraLinks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/www/static/js/dag/details/taskInstance/ExtraLinks.tsx b/airflow/www/static/js/dag/details/taskInstance/ExtraLinks.tsx index 06528eab6e7a1..1eb59cb9b1a65 100644 --- a/airflow/www/static/js/dag/details/taskInstance/ExtraLinks.tsx +++ b/airflow/www/static/js/dag/details/taskInstance/ExtraLinks.tsx @@ -55,7 +55,7 @@ const ExtraLinks = ({ const isSanitised = (url: string | null) => { if (!url) { - return true; + return false; // Empty or null urls should cause the link to be disabled } const urlRegex = /^(https?:)/i; return urlRegex.test(url);