mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
no more build errors, still issues with the selectors not returning anything
This commit is contained in:
@@ -19,7 +19,7 @@ export interface RequestState {
|
||||
// Object.create(null) ensures the object has no default js properties (e.g. `__proto__`)
|
||||
const initialState = Object.create(null);
|
||||
|
||||
export const requestReducer = (state = initialState, action: RequestAction): RequestState => {
|
||||
export function requestReducer(state = initialState, action: RequestAction): RequestState {
|
||||
switch (action.type) {
|
||||
|
||||
case RequestActionTypes.CONFIGURE: {
|
||||
@@ -38,7 +38,7 @@ export const requestReducer = (state = initialState, action: RequestAction): Req
|
||||
return state;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function configureRequest(state: RequestState, action: RequestConfigureAction): RequestState {
|
||||
return Object.assign({}, state, {
|
||||
|
Reference in New Issue
Block a user