chore(sqllab): Relocate user in SqlLab to root (#25010)

This commit is contained in:
JUST.in DO IT
2023-08-21 09:42:31 -07:00
committed by GitHub
parent 5e56871fd9
commit b339613844
10 changed files with 13 additions and 42 deletions

View File

@@ -42,8 +42,6 @@ import {
DatasetRadioState,
EXPLORE_CHART_DEFAULT,
DatasetOwner,
SqlLabExploreRootState,
getInitialState,
SqlLabRootState,
} from 'src/SqlLab/types';
import { mountExploreUrl } from 'src/explore/exploreUtils';
@@ -177,9 +175,7 @@ export const SaveDatasetModal = ({
>(undefined);
const [loading, setLoading] = useState<boolean>(false);
const user = useSelector<SqlLabExploreRootState, User>(user =>
getInitialState(user),
);
const user = useSelector<SqlLabRootState, User>(state => state.user);
const dispatch = useDispatch<(dispatch: any) => Promise<JsonObject>>();
const createWindow = (url: string) => {