SakshamSinghal20 commented on code in PR #61366:
URL: https://github.com/apache/airflow/pull/61366#discussion_r2772291513
##########
airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx:
##########
@@ -63,7 +63,7 @@ const ClearTaskInstanceDialog = ({ onClose: onCloseDialog,
open: openDialog, tas
const upstream = selectedOptions.includes("upstream");
const downstream = selectedOptions.includes("downstream");
const [runOnLatestVersion, setRunOnLatestVersion] = useState(false);
- const [preventRunningTask, setPreventRunningTask] = useState(true);
+ const [preventRunningTask, setPreventRunningTask] = useState(false);
Review Comment:
Yes — this change is intentional.
The previous default (true) caused the dialog to assume task prevention even
when the option wasn’t selected, which led to inconsistent UI state and
incorrect dependency handling.
Initializing it to false aligns with the actual default behavior and ensures
the UI reflects user-selected options correctly.
--
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]