etr2460 commented on a change in pull request #17603:
URL: https://github.com/apache/superset/pull/17603#discussion_r759827294



##########
File path: 
superset-frontend/src/SqlLab/components/EstimateQueryCostButton/index.tsx
##########
@@ -93,7 +91,7 @@ const EstimateQueryCostButton = props => {
         triggerNode={
           <Button
             style={{ height: 32, padding: '4px 15px' }}
-            onClick={onClick}
+            onClick={getEstimate()}

Review comment:
       onClick expects a function (not the return value of a function) so you 
need to remove the parens here
   
   ```suggestion
               onClick={getEstimate}
   ```




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