fix: 'Run in SQL Lab' redirect bug (#13657)

This commit is contained in:
Maxime Beauchemin 2021-03-16 21:47:39 -07:00 committed by GitHub
parent bd1d6acb0c
commit 4bdb958ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ export function redirectSQLLab(formData) {
return dispatch => {
getChartDataRequest({ formData, resultFormat: 'json', resultType: 'query' })
.then(({ result }) => {
const redirectUrl = '/superset/sqllab';
const redirectUrl = '/superset/sqllab/';
const payload = {
datasourceKey: formData.datasource,
sql: result[0].query,