This is an automated email from the ASF dual-hosted git repository.
bugraoz93 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 85e661414d3 Lint ClearTaskInstanceDialog.tsx (#66129)
85e661414d3 is described below
commit 85e661414d37b0fe878525ddda9d95da54f86310
Author: Bugra Ozturk <[email protected]>
AuthorDate: Thu Apr 30 00:45:24 2026 +0200
Lint ClearTaskInstanceDialog.tsx (#66129)
---
.../components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx
b/airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx
index 391951b0f4e..b990e01b1ac 100644
---
a/airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx
+++
b/airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx
@@ -39,10 +39,7 @@ import ClearTaskInstanceConfirmationDialog from
"./ClearTaskInstanceConfirmation
// `taskInstance` (clears that single TI and reads its display fields). The
// two variants are mutually exclusive at the type level — no defensive
// runtime fallback chains needed in the body.
-type Props = {
- readonly onClose: () => void;
- readonly open: boolean;
-} & (
+type Props = (
| {
readonly allMapped: true;
readonly dagId: string;
@@ -53,7 +50,10 @@ type Props = {
readonly allMapped?: false;
readonly taskInstance: TaskInstanceResponse;
}
-);
+) & {
+ readonly onClose: () => void;
+ readonly open: boolean;
+};
// react/destructuring-assignment expects every prop access via signature
// destructure, but TypeScript's discriminated-union narrowing needs the union