choo121600 commented on code in PR #60316:
URL: https://github.com/apache/airflow/pull/60316#discussion_r2684820861
##########
airflow-core/src/airflow/ui/src/components/DagActions/DeleteDagButton.tsx:
##########
@@ -44,7 +44,7 @@ const DeleteDagButton = ({ dagDisplayName, dagId, width,
withText = true }: Dele
onSuccessConfirm: () => {
onClose();
if (isOnDagDetailPage) {
- navigate("/dags");
+ void Promise.resolve(navigate("/dags"));
Review Comment:
Just curious - is there a specific reason for using `void
Promise.resolve(navigate("<path>"))` here and elsewhere?
--
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]