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

@@ -41,7 +41,7 @@ describe('QueryTable', () => {
it('renders a proper table', () => {
const mockStore = configureStore([thunk]);
const store = mockStore({
sqlLab: user,
user,
});
const wrapper = mount(

View File

@@ -105,7 +105,7 @@ const QueryTable = ({
[columns],
);
const user = useSelector<SqlLabRootState, User>(state => state.sqlLab.user);
const user = useSelector<SqlLabRootState, User>(state => state.user);
const data = useMemo(() => {
const restoreSql = (query: QueryResponse) => {