villebro commented on a change in pull request #15254:
URL: https://github.com/apache/superset/pull/15254#discussion_r752320469



##########
File path: superset-frontend/src/SqlLab/components/SqlEditor/index.jsx
##########
@@ -392,8 +397,7 @@ class SqlEditor extends React.PureComponent {
   canValidateQuery() {
     // Check whether or not we can validate the current query based on whether
     // or not the backend has a validator configured for it.
-    const validatorMap = window.featureFlags.SQL_VALIDATORS_BY_ENGINE;

Review comment:
       Same here - instead of checking the `featureFlags` map, we should check 
bootstrap data.




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