bito-code-review[bot] commented on PR #36854:
URL: https://github.com/apache/superset/pull/36854#issuecomment-3696773450

   <!-- Bito Reply -->
   Wrapping the onChange calls in a single handler that includes 
handleClearValidationErrors would reduce code duplication and centralize the 
error-clearing logic, making the code cleaner and easier to maintain.
   
   **superset-frontend/src/features/databases/DatabaseModal/index.tsx**
   ```
   const handleChangeWithClear = (actionType: ActionType, { name, value }: { 
name: string; value: any }) => {
     onChange(actionType, { name, value });
     handleClearValidationErrors();
   };
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to