fix(sqllab): add new tab when add sql query (#15492)

This commit is contained in:
Yaozong Liu 2021-07-02 02:32:15 +08:00 committed by GitHub
parent 7889564250
commit 246368e9dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ export default function EmptyState({ tableName, tab }: EmptyStateProps) {
const mineRedirects = {
DASHBOARDS: '/dashboard/new',
CHARTS: '/chart/add',
SAVED_QUERIES: '/superset/sqllab',
SAVED_QUERIES: '/superset/sqllab?new=true',
};
const favRedirects = {
DASHBOARDS: '/dashboard/list/',

View File

@ -283,7 +283,7 @@ const SavedQueries = ({
),
buttonStyle: 'tertiary',
onClick: () => {
window.location.href = '/superset/sqllab';
window.location.href = '/superset/sqllab?new=true';
},
},
{