williaster commented on a change in pull request #5360: [dashboard] Fix save 
issue at Force_V2_Edit mode
URL: 
https://github.com/apache/incubator-superset/pull/5360#discussion_r200800710
 
 

 ##########
 File path: superset/assets/src/dashboard/deprecated/v1/components/Header.jsx
 ##########
 @@ -43,25 +43,11 @@ class Header extends React.PureComponent {
       showV2PromptModal: props.dashboard.promptV2Conversion,
     };
     this.toggleShowV2PromptModal = this.toggleShowV2PromptModal.bind(this);
-    this.handleConvertToV2 = this.handleConvertToV2.bind(this);
+    this.handleConvertToV2 = props.handleConvertToV2.bind(this);
 
 Review comment:
   right but you don't need to bind a function that comes from props.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to