dheerajturaga commented on code in PR #54163:
URL: https://github.com/apache/airflow/pull/54163#discussion_r2263990415


##########
airflow-core/src/airflow/ui/src/pages/Run/Header.tsx:
##########
@@ -43,6 +43,10 @@ export const Header = ({
   const { t: translate } = useTranslation();
   const [note, setNote] = useState<string | null>(dagRun.note);
 
+  useEffect(() => {
+    setNote(dagRun.note);
+  }, [dagRun.note]);
+

Review Comment:
   @pierrejeambrun, I tried a bunch of things but without success. May I 
understand the reasoning behind avoiding useEffect? I'm not super savvy with 
react UI and any suggestion would be much appreciated.



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