mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: Fix "View in SQLLab" bug (#12086)
This commit is contained in:
parent
08b3ebea5e
commit
655834b25c
@ -116,8 +116,15 @@ class TabbedSqlEditors extends React.PureComponent {
|
||||
}
|
||||
|
||||
// merge post form data with GET search params
|
||||
// Hack: this data should be comming from getInitialState
|
||||
// but for some reason this data isn't being passed properly through
|
||||
// the reducer.
|
||||
const appContainer = document.getElementById('app');
|
||||
const bootstrapData = JSON.parse(
|
||||
appContainer?.getAttribute('data-bootstrap') || '{}',
|
||||
);
|
||||
const query = {
|
||||
...this.props.requestedQuery,
|
||||
...bootstrapData.requested_query,
|
||||
...URI(window.location).search(true),
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user