pierrejeambrun opened a new pull request, #47071: URL: https://github.com/apache/airflow/pull/47071
The button is always mounted. Therefore the associated dialog component is always mounted too. The problem with that is the `note` state. The initial value will never be updated with the new TaskInstance.note after invalidation. If you clear a TI, while updating the node, and then open the `MarkAs` dialog by trying to then mark the task as `Success`, you will see that the note displayed in the accordion is not up to date. (the react state saved the old TI.note). Unmounting the dialog when it is not open solves the issue. -- 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]
