fix(sqllab): Allow opening of SQL Lab in new browser tab (#25582)

This commit is contained in:
JUST.in DO IT
2023-10-13 11:16:50 -04:00
committed by GitHub
parent e56e0de458
commit 003001f19f
10 changed files with 99 additions and 32 deletions

View File

@@ -156,8 +156,8 @@ export const ExploreChartHeader = ({
const { redirectSQLLab } = actions;
const redirectToSQLLab = useCallback(
formData => {
redirectSQLLab(formData, history);
(formData, openNewWindow = false) => {
redirectSQLLab(formData, !openNewWindow && history);
},
[redirectSQLLab, history],
);