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


##########
airflow-core/src/airflow/ui/src/queries/useClearRun.ts:
##########


Review Comment:
   I think we need to extract this into a utility function to not have this 
piece of code duplicated all over the place. (from handling the error and 
skipping the toaster creation, to calling the 'toaster.create....`.
   ```ts
   const createToaster = (error, titleKey, ...) => {}
   ```



-- 
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