pierrejeambrun commented on code in PR #56086:
URL: https://github.com/apache/airflow/pull/56086#discussion_r2382441765


##########
airflow-core/src/airflow/ui/src/components/Banner/BackfillBanner.tsx:
##########
@@ -48,10 +50,17 @@ const buttonProps = {
 
 const BackfillBanner = ({ dagId }: Props) => {
   const { t: translate } = useTranslation("components");
+  const refetchInterval = useAutoRefresh({ dagId });
+
   const { data, isLoading } = useBackfillServiceListBackfillsUi({
     dagId,
+  }, undefined, {
+    refetchInterval: (query: any) =>

Review Comment:
   ```suggestion
       refetchInterval: (query) =>
   ```
   
   You don't need any here, typescript can infer the type. 
   
   That will most likley remove the need for manual typing bellow too. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to