shashbha14 opened a new pull request, #66593:
URL: https://github.com/apache/airflow/pull/66593

   Closes #66591
   In 'ConnectionForm.tsx', line 85, 'JSON.parse(initialConnection.extra)' is 
invoked in a useEffect hook without any error handling. As a result, if any 
connection has some bad JSON in its extra property, that will throw an 
exception and stop Edit Connection form from opening.
   This is done with a try-catch statement on lines 103-110 in the same file. 
Applied the exact same approach – in case the JSON parse failed, fall back to 
the string value so that the form can open successfully.
   > I have used Claude (claude.ai) for this implementation part.


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