madhushreeag commented on code in PR #38117:
URL: https://github.com/apache/superset/pull/38117#discussion_r2835144366


##########
superset-frontend/src/explore/components/controls/TextAreaControl.tsx:
##########
@@ -186,7 +202,7 @@ class TextAreaControl extends 
Component<TextAreaControlProps> {
             defaultValue={this.props.initialValue}
             readOnly={this.props.readOnly}
             key={this.props.name}
-            {...this.props}
+            {...editorProps}
             onChange={this.handleChange.bind(this)}
           />

Review Comment:
   Fixed in the latest commit — language, initialValue, readOnly, name, 
onChange, minLines, and maxLines are now all destructured out before the 
spread, eliminating the duplicate prop assignments. The
     destructuring was also moved to the top of renderEditor so the rest of the 
method uses local variables consistently.
   



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