villebro commented on a change in pull request #15254:
URL: https://github.com/apache/superset/pull/15254#discussion_r753082832
##########
File path: superset-frontend/src/SqlLab/components/SqlEditor/index.jsx
##########
@@ -82,6 +82,14 @@ const SET_QUERY_EDITOR_SQL_DEBOUNCE_MS = 2000;
const VALIDATION_DEBOUNCE_MS = 600;
const WINDOW_RESIZE_THROTTLE_MS = 100;
+const appContainer = document.getElementById('app');
+const bootstrapData = JSON.parse(
+ appContainer.getAttribute('data-bootstrap') || '{}',
+);
Review comment:
I'd like to move this boilerplate into a util, but I'd prefer to do that
in a follow up
--
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]