mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added a basic test for initDashboard thunk
This commit is contained in:
14
public/app/features/profile/state/reducers.ts
Normal file
14
public/app/features/profile/state/reducers.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { UserState } from 'app/types';
|
||||
import config from 'app/core/config';
|
||||
|
||||
export const initialState: UserState = {
|
||||
orgId: config.bootData.user.orgId,
|
||||
};
|
||||
|
||||
export const userReducer = (state = initialState, action: any): UserState => {
|
||||
return state;
|
||||
};
|
||||
|
||||
export default {
|
||||
user: userReducer,
|
||||
};
|
||||
Reference in New Issue
Block a user