From 7e1989ab221985540dd48543158e1cb92ffad873 Mon Sep 17 00:00:00 2001 From: Jens Scheffler <95105677+jscheffl@users.noreply.github.com> Date: Sat, 9 Nov 2024 19:54:03 +0100 Subject: [PATCH] #43252 Disable extra links button if link is null or empty (#43844) (#43851) * Disable button if link is null or empty * Fix space --------- Co-authored-by: Enis Nazif (cherry picked from commit de8818270095d9f05edfec8e03daa5df7d6a773b) Co-authored-by: enisnazif --- 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);