This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 7f653e67153 Fix UI lint erros failing static checks (#74402)
7f653e67153 is described below

commit 7f653e67153be1f23b1d4ae86c316340be634ac1
Author: Pushkal Gupta <[email protected]>
AuthorDate: Wed Oct 7 16:17:20 2026 +0530

    Fix UI lint erros failing static checks (#74402)
---
 airflow-core/src/airflow/ui/src/hooks/useAdvancedSearch.ts          | 6 +-----
 .../src/airflow/ui/src/queries/useRecentTaskStateCounts.tsx         | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/airflow-core/src/airflow/ui/src/hooks/useAdvancedSearch.ts 
b/airflow-core/src/airflow/ui/src/hooks/useAdvancedSearch.ts
index 23fff446e27..827fe1ccec4 100644
--- a/airflow-core/src/airflow/ui/src/hooks/useAdvancedSearch.ts
+++ b/airflow-core/src/airflow/ui/src/hooks/useAdvancedSearch.ts
@@ -36,11 +36,7 @@ export const useAdvancedSearch = (key: string) => {
     readParams: (params) => {
       const urlValues = params.getAll(SearchParamsKeys.ADVANCED_SEARCH);
 
-      if (urlValues.includes(key)) {
-        return true;
-      }
-
-      return urlValues.includes(`-${key}`) ? false : undefined;
+      return urlValues.includes(key) || (!urlValues.includes(`-${key}`) && 
undefined);
     },
     storageKey: advancedSearchKey(key),
     writeParams: (params, nextEnabled) => {
diff --git 
a/airflow-core/src/airflow/ui/src/queries/useRecentTaskStateCounts.tsx 
b/airflow-core/src/airflow/ui/src/queries/useRecentTaskStateCounts.tsx
index edab372502d..a814e67c0d1 100644
--- a/airflow-core/src/airflow/ui/src/queries/useRecentTaskStateCounts.tsx
+++ b/airflow-core/src/airflow/ui/src/queries/useRecentTaskStateCounts.tsx
@@ -51,7 +51,7 @@ export const useRecentTaskStateCounts = (
   const { data, isLoading } = 
useDagServiceGetRecentTaskInstanceStateCountsUi({ dagRunIds }, undefined, {
     enabled: show && dagRunIds.length > 0,
     placeholderData: (prev) => prev,
-    refetchInterval: hasUnfinishedRun ? refetchInterval : false,
+    refetchInterval: hasUnfinishedRun && refetchInterval,
   });
 
   return {

Reply via email to