mirror of
https://github.com/apache/superset.git
synced 2026-04-24 10:35:01 +00:00
chore(sqllab): Relocate user in SqlLab to root (#25010)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user