mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: passing url params in sqllab (#15246)
* fix: passing url params in sqllab * avoid undefined serach and add test Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
This commit is contained in:
@@ -332,8 +332,9 @@ export function runQuery(query) {
|
||||
expand_data: true,
|
||||
};
|
||||
|
||||
const search = window.location.search || '';
|
||||
return SupersetClient.post({
|
||||
endpoint: '/superset/sql_json/',
|
||||
endpoint: `/superset/sql_json/${search}`,
|
||||
body: JSON.stringify(postPayload),
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
parseMethod: 'text',
|
||||
|
||||
Reference in New Issue
Block a user