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

jscheffl 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 8b38cafb64a Invalidate Dag list on DAG deletion (#53599)
8b38cafb64a is described below

commit 8b38cafb64abb98670c07e70b829ec9559c4df4c
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Mon Jul 21 22:43:44 2025 +0200

    Invalidate Dag list on DAG deletion (#53599)
---
 airflow-core/src/airflow/ui/src/queries/useDeleteDag.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow-core/src/airflow/ui/src/queries/useDeleteDag.ts 
b/airflow-core/src/airflow/ui/src/queries/useDeleteDag.ts
index 10fe14e5ce3..bdd61379a2a 100644
--- a/airflow-core/src/airflow/ui/src/queries/useDeleteDag.ts
+++ b/airflow-core/src/airflow/ui/src/queries/useDeleteDag.ts
@@ -19,7 +19,7 @@
 import { useQueryClient } from "@tanstack/react-query";
 import { useTranslation } from "react-i18next";
 
-import { useDagServiceDeleteDag } from "openapi/queries";
+import { useDagServiceDeleteDag, useDagServiceGetDagsUiKey } from 
"openapi/queries";
 import { useDagServiceGetDagKey } from "openapi/queries";
 import { toaster } from "src/components/ui";
 
@@ -44,7 +44,7 @@ export const useDeleteDag = ({
   };
 
   const onSuccess = async () => {
-    const queryKeys = [[useDagServiceGetDagKey, { dagId }]];
+    const queryKeys = [[useDagServiceGetDagKey, { dagId }], 
[useDagServiceGetDagsUiKey]];
 
     await Promise.all(queryKeys.map((key) => queryClient.invalidateQueries({ 
queryKey: key })));
 

Reply via email to